Ignore:
Timestamp:
Jan 14, 2010, 10:51:03 PM (14 years ago)
Author:
gav
Message:

Refactor classes for asset tree refinement.
Regenerate views and controllers to suite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/Department.groovy

    r164 r268  
    33    String name
    44    String description = ""
    5     String costCode = ""
    65    boolean isActive = true
    76
    8     static hasMany = [systemSections: SystemSection, persons: Person]
     7    static hasMany = [sections: Section,
     8                                departmentExtendedAttributes: DepartmentExtendedAttribute,
     9                                persons: Person]
    910
    1011//     static belongsTo = []
    1112
    1213    static constraints = {
    13         name()
    14         description()
    15         costCode()
     14        name(maxSize:50, unique:true, blank:false)
     15        description(maxSize:100)
    1616        isActive()
    1717    }
Note: See TracChangeset for help on using the changeset viewer.