source: trunk/grails-app/domain/Asset.groovy @ 124

Last change on this file since 124 was 124, checked in by gav, 15 years ago

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 size: 423 bytes
Line 
1class Asset {
2
3    SystemSection systemSection
4    AssetType assetType
5
6    String name
7    String description = ""
8    boolean isActive = true
9
10    static hasMany = [maintenanceActions: MaintenanceAction, assetExtendedAttributes: AssetExtendedAttribute]
11
12    static belongsTo = [SystemSection, AssetType]
13
14    static constraints = {
15        name(unique:true)
16    }
17
18    String toString() {
19        "${this.name}"
20    }
21}
22
Note: See TracBrowser for help on using the repository browser.