Ignore:
Timestamp:
Nov 25, 2008, 3:58:19 PM (16 years ago)
Author:
tuxta
Message:

Set up BootStrap? and tweaked Domain classes

File:
1 edited

Legend:

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

    r16 r19  
    22
    33     def init = { servletContext ->
     4
     5        //TypeOfPersonGroup
     6         new TypeOfPersonGroup(name:"Department").save()
     7         new TypeOfPersonGroup(name:"Contractor").save()
     8         new TypeOfPersonGroup(name:"ProjectTeam").save()
     9         
     10         //PersonGroup
     11         new PersonGroup(typeOfPersonGroup:TypeOfPersonGroup.get(1),
     12             name:"Electrical").save()
     13         new PersonGroup(typeOfPersonGroup:TypeOfPersonGroup.get(2),
     14             name:"Kewl AirCon Guys").save()
     15         new PersonGroup(typeOfPersonGroup:TypeOfPersonGroup.get(3),
     16             name:"openMim").save()
    417     }
    518     def destroy = {
    619     }
    7 } 
     20}
Note: See TracChangeset for help on using the changeset viewer.