Ignore:
Timestamp:
Jun 10, 2010, 1:33:37 AM (13 years ago)
Author:
keesvb
Message:

added entity property to TemplateField?; added validator to Template to ensure fields are of the correct entity, updated BootStrap? accordingly, updated tests accordingly

File:
1 edited

Legend:

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

    r540 r550  
    1414        String name
    1515        TemplateFieldType type
     16    Class entity
    1617        String unit
    1718        String comment // help string for the user interface
     
    2728        static constraints = {
    2829                // TODO: verify that TemplateField names are unique within templates of each super entity
     30                name(nullable: false, blank: false)
     31                type(nullable: false, blank: false)
     32                entity(nullable: false, blank: false)
    2933                unit(nullable: true, blank: true)
    3034                comment(nullable: true, blank: true)
Note: See TracChangeset for help on using the changeset viewer.