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 moved

Legend:

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

    r262 r268  
    1 class SystemSection {
     1class Section {
    22
    33    Site site
     
    66    String name
    77    String description = ""
    8     String costCode = ""
    98    boolean isActive = true
    109
    11     static hasMany = [assets: Asset, maintenanceActions: MaintenanceAction]
     10    static hasMany = [assets: Asset,
     11                                maintenanceActions: MaintenanceAction,
     12                                sectionExtendedAttributes: SectionExtendedAttribute]
    1213
    1314    static belongsTo = [Site]
    1415
    15 //     static constraints = {
    16 //
    17 //     }
     16    static constraints = {
     17        name(maxSize:50, unique:true, blank:false)
     18        description(maxSize:100)
     19        isActive()
     20    }
    1821
    1922    String toString() {
Note: See TracChangeset for help on using the changeset viewer.