Show
Ignore:
Timestamp:
04-05-10 17:03:21 (4 years ago)
Author:
keesvb
Message:

switched back from the fancy 'integrate domain fields as system fields directly into the Template object at the time of creation' method to the plain 'implement getFieldValue, setFieldValue and giveFields to work for both domain and template fields'. NB: this might affect Events, since until now startTime and endTime were moved directly into template! Switch any Event.template.fields to Event.giveFields()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Sample.groovy

    r389 r392  
    1616        // a member that describes the quantity of the sample? --> should be in the templates 
    1717 
    18         Map giveDomainFields() { 
    19                 return ['name':TemplateFieldType.STRING,'material':TemplateFieldType.ONTOLOGYTERM] 
     18        List<TemplateField> giveDomainFields() { 
     19                [ new TemplateField( 
     20                            name: 'name', 
     21                            type: TemplateFieldType.STRING), 
     22                        new TemplateField( 
     23                            name: 'material', 
     24                            type: TemplateFieldType.ONTOLOGYTERM) ]; 
    2025        } 
    2126