Ignore:
Timestamp:
Jan 20, 2009, 8:08:17 PM (16 years ago)
Author:
gavin
Message:

Add to BootStrap?, work on Domain classes update ERD to match, again.

File:
1 edited

Legend:

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

    r21 r25  
    3737        //TypeOfPersonGroup
    3838        new PersonGroupType(name:"Department").save()
    39         println "PersonGroup = ${PersonGroupType.get(1)}"
    4039        new PersonGroupType(name:"Contractor").save()
    4140        new PersonGroupType(name:"ProjectTeam").save()
    4241   
    4342        //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()
    5149           
    5250        //Person
    5351        new Person(personGroup:PersonGroup.get(1),
    54             firstName:"FirstNameTech1",
    55             lastName:"LastNameTech1").save()
     52                   firstName:"FirstNameTech1",
     53                   lastName:"LastNameTech1").save()
    5654        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()
    5984   
    6085    }
Note: See TracChangeset for help on using the changeset viewer.