Ignore:
Timestamp:
Apr 30, 2009, 9:36:34 PM (15 years ago)
Author:
gav
Message:

Extensive update to Asset ERD and associated domain classes, not compiled or tested.

File:
1 edited

Legend:

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

    r118 r121  
    11class LifePlan {
    2     Asset asset
    3     Form form
    4     Frequency frequency
    5     AssetType assetType
    6     Assembly assembly
    7     SubAssembly subAssembly
    8     ComponentItem componentItem
    92
    103    String name
    114    String description = ""
    12     String resourceNumber = ""
    13     Integer timeInHours
    14     String maintenanceAction
    15     String notes = ""
    16    
    175    boolean isActive = true
    186
    19     static hasMany = [systemSections: SystemSection]
     7//     static hasMany = []
    208
    21     static belongsTo = [SystemSection]
     9//     static belongsTo = []
    2210
    23     static constraints = {
    24         asset(blank:true,nullable:true)
    25         form(blank:true,nullable:true)
    26         frequency(blank:true,nullable:true)
    27         assetType(blank:true,nullable:true)
    28         assembly(blank:true,nullable:true)
    29         subAssembly(blank:true,nullable:true)
    30         componentItem(blank:true,nullable:true)
    31     }
     11//     static constraints = {
     12//     }
    3213
    3314    String toString() {
Note: See TracChangeset for help on using the changeset viewer.