Changeset 35 for trunk/src/grails-app/domain
- Timestamp:
- Jan 26, 2009, 5:26:11 AM (16 years ago)
- Location:
- trunk/src/grails-app/domain
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/grails-app/domain/Person.groovy
r21 r35 1 1 class Person { 2 PersonGroup personGroup3 2 String firstName 4 3 String lastName … … 16 15 17 16 static constraints = { 18 firstName( )19 lastName( )17 firstName(maxSize:50,blank:false) 18 lastName(maxSize:50,blank:false) 20 19 employeeID(blank:true, nullable:true) 21 20 } -
trunk/src/grails-app/domain/PersonGroup.groovy
r21 r35 7 7 static hasMany = [persons : Person] 8 8 9 static belongsTo = PersonGroup 9 static constraints = { 10 name(maxSize:50,unique:true,blank:false) 11 description(maxSize:100) 12 } 10 13 11 14 String toString() { -
trunk/src/grails-app/domain/PersonGroupType.groovy
r21 r35 6 6 static hasMany = [personGroups : PersonGroup] 7 7 8 static constraints = { 9 name(maxSize:50,unique:true,blank:false) 10 description(maxSize:100) 11 } 12 8 13 String toString() { 9 14 "${this.name}" -
trunk/src/grails-app/domain/TaskGroup.groovy
r25 r35 1 1 class TaskGroup { 2 2 String name 3 String description 3 String description = "" 4 4 boolean isActive = true 5 5 … … 7 7 8 8 static constraints = { 9 name( blank:false)10 description( blank:false)9 name(maxSize:50,unique:true,blank:false) 10 description(maxSize:100) 11 11 } 12 12
Note: See TracChangeset
for help on using the changeset viewer.