Changeset 149 for trunk/grails-app/conf
- Timestamp:
- Jan 29, 2010, 1:43:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrap.groovy
r148 r149 62 62 ).with { if (!validate()) { errors.each { println it} } else save()} 63 63 64 65 // added by Jahn for testing the event views 66 def treatmentProtocol2 = new Protocol( 67 name: 'MADMAX Experimental Protocol 2', 68 reference: treatmentTerm 69 ).with { if (!validate()) { errors.each { println it} } else save()} 70 71 72 64 73 treatmentProtocol 65 74 .addToParameters(new ProtocolParameter( … … 75 84 type: ProtocolParameterType.STRING)) 76 85 .save() 86 87 88 // added by Jahn for testing the event views 89 treatmentProtocol2 90 .addToParameters(new ProtocolParameter( 91 name: 'Diet', 92 type: ProtocolParameterType.STRINGLIST, 93 listEntries: ['99% fat (crude oil)','1% fat (palm oil)'])) 94 .addToParameters(new ProtocolParameter( 95 name: 'Compound', 96 type: ProtocolParameterType.STRINGLIST, 97 listEntries: ['Vehicle','Leptin'])) 98 .addToParameters(new ProtocolParameter( 99 name: 'Administration', 100 type: ProtocolParameterType.STRING)) 101 .save() 102 77 103 78 104 … … 109 135 ).with { if (!validate()) { errors.each { println it} } else save()} 110 136 137 111 138 // studies 112 139 def exampleStudy = new Study(
Note: See TracChangeset
for help on using the changeset viewer.