Ignore:
Timestamp:
May 4, 2009, 1:59:11 PM (15 years ago)
Author:
gav
Message:

Detail controller and views for Asset, AssetExtendedAttribute?, PlannedMaintenance?, MaintenanceAction?, RecurringSchedule?, SystemSection?.
Some minor work on Task controller and views.
Change PlannedMaintenance? relationship, adjust ERD, Bootstrap and Domain classes to suite.

File:
1 edited

Legend:

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

    r122 r124  
    88    boolean isActive = true
    99
    10     static hasMany = [maintenanceActions: MaintenanceAction]
     10    static hasMany = [maintenanceActions: MaintenanceAction, assetExtendedAttributes: AssetExtendedAttribute]
    1111
    1212    static belongsTo = [SystemSection, AssetType]
    1313
    14 //     static constraints = {
    15 //     }
     14    static constraints = {
     15        name(unique:true)
     16    }
    1617
    1718    String toString() {
Note: See TracChangeset for help on using the changeset viewer.