Ignore:
Timestamp:
Jan 20, 2010, 8:12:16 AM (15 years ago)
Author:
gav
Message:

Change AssetSubItem to have many assets.

File:
1 edited

Legend:

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

    r268 r276  
    11class AssetSubItem {
    22
    3     Asset asset
    43    AssetSubItem parentItem
    54
     
    87    boolean isActive = true
    98
    10     static hasMany = [subItems: AssetSubItem,
     9    static hasMany = [assets: Asset,
     10                                subItems: AssetSubItem,
    1111                                maintenanceActions: MaintenanceAction,
    1212                                assetSubItemExtendedAttributes: AssetSubItemExtendedAttribute]
     
    1818        description(maxSize:100)
    1919        isActive()
    20         asset(nullable:true)
    2120        parentItem(nullable:true)
    2221    }
Note: See TracChangeset for help on using the changeset viewer.