Last change
on this file since 119 was
118,
checked in by gav, 16 years ago
|
First commit of Asset domain, including domain-classes, controllers, views and bootstrap.
|
File size:
487 bytes
|
Rev | Line | |
---|
[116] | 1 | class 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.