Ignore:
Timestamp:
Jan 26, 2010, 10:48:51 AM (13 years ago)
Author:
keesvb
Message:

added start of NuGO PPS3 to BootStrap?

Location:
trunk/grails-app/domain/dbnp/studycapturing
Files:
3 edited

Legend:

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

    r106 r136  
    99 * $Date$
    1010 */
    11 class Study implements Serializable {
     11class Study {
    1212        nimble.User owner
    1313        String title
     
    3838                researchQuestion type: 'text'
    3939                description type: 'text'
     40                autoTimestamp true
    4041        }
    4142
  • trunk/grails-app/domain/dbnp/studycapturing/Subject.groovy

    r106 r136  
    88class Subject {
    99
    10     String name
    11     Term species
     10        String name
     11        Term species
     12        Map templateStringFields
     13        Map templateNumberFields
     14        Map templateStringListFields
     15        Map templateTermFields
    1216
    13     static constraints = {
    14     }
     17        static hasMany = [
     18                templateStringFields : String,
     19                templateNumberFields : float,
     20                templateStringListFields : String,
     21                templateTermFields : Term
     22        ]
     23       
     24        static constraints = {
     25        }
    1526}
  • trunk/grails-app/domain/dbnp/studycapturing/TemplateField.groovy

    r92 r136  
    77    String name
    88    TemplateFieldType type
     9    String unit
    910
    1011    static constraints = {
     12            name(unique:true)
     13            unit(nullable:true, blank:true)
    1114    }
    1215
Note: See TracChangeset for help on using the changeset viewer.