Last change
on this file since 1430 was
1430,
checked in by work@…, 12 years ago
|
|
-
Property svn:keywords set to
Rev Author Date
|
File size:
994 bytes
|
Line | |
---|
1 | package dbnp.importer |
---|
2 | |
---|
3 | import nl.grails.plugins.gdt.* |
---|
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 | */ |
---|
14 | class MappingColumn implements Serializable { |
---|
15 | |
---|
16 | String name |
---|
17 | nl.grails.plugins.gdt.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.