Changeset 268 for trunk/grails-app/domain/Section.groovy
- Timestamp:
- Jan 14, 2010, 10:51:03 PM (15 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Section.groovy
r262 r268 1 class S ystemSection {1 class Section { 2 2 3 3 Site site … … 6 6 String name 7 7 String description = "" 8 String costCode = ""9 8 boolean isActive = true 10 9 11 static hasMany = [assets: Asset, maintenanceActions: MaintenanceAction] 10 static hasMany = [assets: Asset, 11 maintenanceActions: MaintenanceAction, 12 sectionExtendedAttributes: SectionExtendedAttribute] 12 13 13 14 static belongsTo = [Site] 14 15 15 // static constraints = { 16 // 17 // } 16 static constraints = { 17 name(maxSize:50, unique:true, blank:false) 18 description(maxSize:100) 19 isActive() 20 } 18 21 19 22 String toString() {
Note: See TracChangeset
for help on using the changeset viewer.