root/trunk/grails-app/domain/dbnp/importer/MappingColumn.groovy @ 959

Revision 959, 0.9 KB (checked in by j.a.m.wesbeek@…, 3 years ago)

- set keyword expansion

  • Property svn:keywords set to Author Date Rev
Line 
1package dbnp.importer
2import dbnp.studycapturing.TemplateField
3
4/**
5* name: column name (in Excel)
6* templatefieldtype: GSCF field type
7* entity: GSCF entity class
8* property: GSCF template field
9* index: column index
10* value: column value (optional, normally only name is used)
11* identifier: true if this column is identifying (unique/primary key)
12*/
13class MappingColumn {
14
15        String name
16        dbnp.studycapturing.TemplateFieldType templatefieldtype
17        Class entity
18        String property
19        Integer index
20        String value
21        Boolean identifier
22        Boolean dontimport
23
24    static constraints = {
25            name(unique: true)
26            dontimport(default:false)
27    }
28
29    static mapping = {
30            tablePerHierarchy false
31    }
32
33    String toString() {
34        return "Name:" + name + "/TemplateFieldType:" + templatefieldtype + "/Entity:" + entity + "/Property:" + property + "/Index:" + index + "/Value:" + value + "/Identifier:" + identifier
35    }
36}
Note: See TracBrowser for help on using the browser.