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

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

Run generate-all on all controllers and views except Person and Authority.
Extensive work on Asset domain and application now compiles and runs well.
Update BootStrap? to suite.

File size: 354 bytes
RevLine 
[116]1class Asset {
[122]2
[121]3    SystemSection systemSection
[118]4    AssetType assetType
[122]5
[116]6    String name
7    String description = ""
8    boolean isActive = true
9
[121]10    static hasMany = [maintenanceActions: MaintenanceAction]
11
[122]12    static belongsTo = [SystemSection, AssetType]
[121]13
[116]14//     static constraints = {
15//     }
16
17    String toString() {
18        "${this.name}"
19    }
20}
21
Note: See TracBrowser for help on using the repository browser.