Changeset 25 for trunk/src/grails-app/conf/BootStrap.groovy
- Timestamp:
- Jan 20, 2009, 8:08:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/grails-app/conf/BootStrap.groovy
r21 r25 37 37 //TypeOfPersonGroup 38 38 new PersonGroupType(name:"Department").save() 39 println "PersonGroup = ${PersonGroupType.get(1)}"40 39 new PersonGroupType(name:"Contractor").save() 41 40 new PersonGroupType(name:"ProjectTeam").save() 42 41 43 42 //PersonGroup 44 new PersonGroup(PersonGroupType:PersonGroupType.findByName("Department"), name:"Electrical").save() 45 new PersonGroup( 46 PersonGroupType:PersonGroupType.get(2), 47 name:"Kewl AirCon Guys").save() 48 new PersonGroup( 49 PersonGroupType:PersonGroupType.get(3), 50 name:"openMim").save() 43 new PersonGroup(personGroupType:PersonGroupType.findByName("Department"), 44 name:"Electrical").save() 45 new PersonGroup(personGroupType:PersonGroupType.get(2), 46 name:"Kewl AirCon Guys").save() 47 new PersonGroup(personGroupType:PersonGroupType.get(3), 48 name:"openMim").save() 51 49 52 50 //Person 53 51 new Person(personGroup:PersonGroup.get(1), 54 firstName:"FirstNameTech1",55 lastName:"LastNameTech1").save()52 firstName:"FirstNameTech1", 53 lastName:"LastNameTech1").save() 56 54 new Person(personGroup:PersonGroup.get(2), 57 firstName:"Joe", 58 lastName:"Samples").save() 55 firstName:"Joe", 56 lastName:"Samples").save() 57 58 //TaskGroup 59 new TaskGroup(name:"Engineering", 60 description:"Engineering task group").save() 61 new TaskGroup(name:"Production", 62 description:"Production task group").save() 63 new TaskGroup(name:"NewProject(s)", 64 description:" ").save() 65 66 67 //Task 68 new Task(taskGroup:TaskGroup.findByName("Engineering"), 69 person:Person.get(1), 70 name:"Check specific level sensor", 71 description:"Has been noted as problematic, try recallibrating", 72 scheduledDate: new Date(), 73 targetDate: new Date() ).save() 74 new Task(taskGroup:TaskGroup.findByName("Production"), 75 person:Person.get(2), 76 name:"Production Report", 77 description:"Production report for specific production run or shift", 78 scheduledDate: new Date(), 79 targetDate: new Date() ).save() 80 81 //EntryType 82 new EntryType(name:"Fault").save() 83 new EntryType(name:"WorkDone").save() 59 84 60 85 }
Note: See TracChangeset
for help on using the changeset viewer.