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/Asset.groovy

    r180 r268  
    11class Asset {
    22
    3     SystemSection systemSection
    4     AssetType assetType
     3    Section section
    54
    65    String name
    76    String description = ""
    8     String costCode = ""
    97    boolean isActive = true
    108
    11     static hasMany = [maintenanceActions: MaintenanceAction,
     9    static hasMany = [assetSubItems: AssetSubItem,
     10                                    maintenanceActions: MaintenanceAction,
    1211                                    assetExtendedAttributes: AssetExtendedAttribute]
    1312
    14     static belongsTo = [SystemSection, AssetType]
     13    static belongsTo = [Section]
    1514
    1615    static constraints = {
    17         name(unique:true, blank:false)
     16        name(maxSize:50, unique:true, blank:false)
     17        description(maxSize:100)
     18        isActive()
     19        section()
    1820    }
    1921
Note: See TracChangeset for help on using the changeset viewer.