Changeset 146 for trunk/grails-app/conf


Ignore:
Timestamp:
Jan 28, 2010, 6:42:30 PM (11 years ago)
Author:
keesvb
Message:

added helper functions to Subject and Template classes to easily get the template fields, and added a demonstration of use in the sandbox

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/BootStrap.groovy

    r143 r146  
    125125                                        name: "A" + x++,
    126126                                        species: mouseTerm,
     127                                        template: mouseTemplate,
    127128                                        templateStringFields: ["Genotype" : "C57/Bl6j", "Gender" : "Male"],
    128                                         templateNumberFields: ["Age" : 17, "Cage" : (int)(x/2)]
     129                                        templateIntegerFields: ["Age" : 17, "Cage" : (int)(x/2)]
    129130                                ).with { if (!validate()) { errors.each { println it} } else save()}
    130131
Note: See TracChangeset for help on using the changeset viewer.