source:
trunk/grails-app/domain/Assembly.groovy
@
191
Last change on this file since 191 was 131, checked in by , 16 years ago | |
---|---|
File size: 342 bytes |
Rev | Line | |
---|---|---|
[118] | 1 | class Assembly { |
[131] | 2 | |
3 | AssetType assetType | |
4 | ||
[118] | 5 | String name |
6 | String description = "" | |
7 | boolean isActive = true | |
8 | ||
[131] | 9 | static hasMany = [subAssemblies: SubAssembly, maintenanceActions: MaintenanceAction] |
[118] | 10 | |
11 | static belongsTo = [AssetType] | |
12 | ||
13 | // static constraints = { | |
14 | // | |
15 | // } | |
16 | ||
17 | String toString() { | |
18 | "${this.name}" | |
19 | } | |
20 | } | |
21 |
Note: See TracBrowser
for help on using the repository browser.