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

Last change on this file since 545 was 545, checked in by tabma, 11 years ago
  • fixed Advanced Import Wizard (preferredIdentifier issues)
  • Property svn:keywords set to Date Rev Author
File size: 793 bytes
RevLine 
[185]1package dbnp.importer
[273]2import dbnp.studycapturing.TemplateField
[185]3
[245]4/**
[534]5* name: column name (in Excel)
6* templatefieldtype: GSCF field type
[245]7* entity: GSCF entity class
[273]8* property: GSCF template field
[245]9* index: column index
10* value: column value (optional, normally only name is used)
[273]11* identifier: true if this column is identifying (unique/primary key)
[245]12*/
[185]13class MappingColumn {
14
15        String name
[251]16        dbnp.studycapturing.TemplateFieldType templatefieldtype
[185]17        Class entity
[534]18        String property
[245]19        Integer index
20        String value
[273]21        Boolean identifier
[185]22
23    static constraints = {
24            name(unique: true)
25    }
[245]26
27    String toString() {
[545]28        return "Name:" + name + "/TemplateFieldType:" + fieldtype + "/Entity:" + entity + "/Property:" + property + "/Index:" + index + "/Value:" + value + "/Identifier:" + identifier
[245]29    }
[185]30}
Note: See TracBrowser for help on using the repository browser.