Changeset 19 for trunk/src/grails-app
- Timestamp:
- Nov 25, 2008, 3:58:19 PM (16 years ago)
- Location:
- trunk/src/grails-app
- Files:
-
- 8 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/grails-app/conf/BootStrap.groovy
r16 r19 2 2 3 3 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() 4 17 } 5 18 def destroy = { 6 19 } 7 } 20 } -
trunk/src/grails-app/domain/Person.groovy
r18 r19 17 17 firstName() 18 18 lastName() 19 employeeID( )19 employeeID(blank:true, nullable:true) 20 20 } 21 21 22 22 //Overriding the default toString method 23 String toString() {"${this.firstName} :"{this.lastName}}23 String toString() {"${this.firstName} ${this.lastName}"} 24 24 } -
trunk/src/grails-app/domain/PersonGroup.groovy
r18 r19 2 2 TypeOfPersonGroup typeOfPersonGroup 3 3 String name 4 String description 5 boolean isActive 4 String description = "" 5 boolean isActive = true 6 6 7 7 static hasMany = [persons : Person] 8 8 9 9 static belongsTo = TypeOfPersonGroup 10 11 String toString() { 12 "${this.name}" 13 } 10 14 } -
trunk/src/grails-app/domain/TaskGroup.groovy
r18 r19 11 11 } 12 12 13 String toString() {"${ name}"}13 String toString() {"${this.name}"} 14 14 } -
trunk/src/grails-app/domain/TypeOfEntry.groovy
r18 r19 2 2 Entry entry 3 3 String name 4 String description 4 String description = "" 5 5 boolean isActive 6 6 … … 14 14 } 15 15 16 static optionals = ["description"] 16 String toString() { 17 "${this.name}" 18 } 17 19 } -
trunk/src/grails-app/domain/TypeOfModification.groovy
r18 r19 11 11 isActive() 12 12 } 13 14 String toString() { 15 "${this.name}" 16 } 13 17 } -
trunk/src/grails-app/domain/TypeOfPersonGroup.groovy
r18 r19 1 1 class TypeOfPersonGroup { 2 2 String name 3 String Description4 boolean isActive 3 String description = "" 4 boolean isActive = true 5 5 6 6 static hasMany = [personGroups : PersonGroup] 7 8 String toString() { 9 "${this.name}" 10 } 7 11 }
Note: See TracChangeset
for help on using the changeset viewer.