source: trunk/grails-app/domain/AssetType.groovy @ 160

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

Add costCode attribute to AssetType? and regen controller and views.

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