Changeset 19 for trunk/src/grails-app/domain
- Timestamp:
- Nov 25, 2008, 3:58:19 PM (16 years ago)
- Location:
- trunk/src/grails-app/domain
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
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.