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

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

First commit of Asset domain, including domain-classes, controllers, views and bootstrap.

File size: 487 bytes
RevLine 
[116]1class Asset {
[118]2    LifePlan lifeplan
3    AssetType assetType
[116]4    String name
5    String description = ""
[118]6    String locationLongText = ""
7    Integer riskPriorityNumber
8    String modelNumber = ""
9    String serialNumber = ""
10    Integer purchaseCost = 0
11    Date manufacturedDate = new Date()
12   
[116]13    boolean isActive = true
14
15//     static hasMany = []
16//
17//     static belongsTo = []
18//
19//     static constraints = {
20//     }
21
22    String toString() {
23        "${this.name}"
24    }
25}
26
Note: See TracBrowser for help on using the repository browser.