source: trunk/grails-app/domain/dbnp/importer/MappingColumn.groovy @ 1277

Last change on this file since 1277 was 1277, checked in by t.w.abma@…, 10 years ago
  • rewrite of the Importer Wizard into an Ajaxflow
  • Property svn:keywords set to Author Date Rev
File size: 1.0 KB
Line 
1package dbnp.importer
2import dbnp.studycapturing.TemplateField
3import dbnp.studycapturing.Identity
4
5/**
6* name: column name (in Excel)
7* templatefieldtype: GSCF field type
8* entity: GSCF entity class
9* property: GSCF template field
10* index: column index
11* value: column value (optional, normally only name is used)
12* identifier: true if this column is identifying (unique/primary key)
13*/
14class MappingColumn implements Serializable {
15
16        String name
17        dbnp.studycapturing.TemplateFieldType templatefieldtype
18        Class entity
19        String property
20        Integer index
21        String value
22        Boolean identifier
23        Boolean dontimport
24
25    static transients = [ "templatefieldtype", "entity" ]
26
27    static constraints = {
28            name(unique: true)
29            dontimport(default:false)
30    }
31
32    static mapping = {
33            tablePerHierarchy false
34    }
35
36    String toString() {
37        return "Name:" + name + "/TemplateFieldType:" + templatefieldtype + "/Entity:" + entity + "/Property:" + property + "/Index:" + index + "/Value:" + value + "/Identifier:" + identifier
38    }
39}
Note: See TracBrowser for help on using the repository browser.