Changeset 96 for trunk/src/grails-app/conf
- Timestamp:
- Mar 31, 2009, 5:43:09 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/grails-app/conf/BootStrap.groovy
r93 r96 215 215 comment:"Has been noted as problematic, try recallibrating") 216 216 BootStrapSaveAndTest(taskInstance) 217 taskInstance.addToAssignedPersons(Person.get(1))218 taskInstance.addToAssignedPersons(Person.get(2))219 217 220 218 subTaskInstance = new Task(taskGroup:TaskGroup.findByName("Engineering Activites"), … … 226 224 comment:"Some help required") 227 225 BootStrapSaveAndTest(subTaskInstance) 228 subTaskInstance.addToAssignedPersons(Person.get(1))229 226 230 227 //Add task 2 as a subTask of task 1. … … 240 237 comment:"Nothing else has worked.") 241 238 BootStrapSaveAndTest(subTaskInstance) 242 subTaskInstance.addToAssignedPersons(Person.get(1))243 239 244 240 //Add task 3 as a subTask of task 1. … … 314 310 taskModificationTypeInstance = new TaskModificationType(name:"AssignedToModified").save() 315 311 taskModificationTypeInstance = new TaskModificationType(name:"NameModified").save() 316 312 313 //AssignedPerson 314 def assignedPersonInstance 315 316 assignedPersonInstance = new AssignedPerson(person: Person.get(4), 317 task: Task.get(1), 318 estimatedHour: 1, 319 estimatedMinute: 20) 320 BootStrapSaveAndTest(assignedPersonInstance) 321 322 assignedPersonInstance = new AssignedPerson(person: Person.get(5), 323 task: Task.get(1), 324 estimatedHour: 3, 325 estimatedMinute: 30) 326 BootStrapSaveAndTest(assignedPersonInstance) 327 328 329 //Finally did it all work. 317 330 if(BootStrapDemoDataSuccessful) { 318 331 println "BootStrapping demo data...successful."
Note: See TracChangeset
for help on using the changeset viewer.