Last change
on this file since 417 was
116,
checked in by gav, 16 years ago
|
First commit of Inventory domain, including domain-classes, controllers, views and bootstrap. Also double check/adjust as required security extends in controllers.
|
File size:
308 bytes
|
Rev | Line | |
---|
[116] | 1 | class InventoryGroup { |
---|
| 2 | String name |
---|
| 3 | String description = "" |
---|
| 4 | boolean isActive = true |
---|
| 5 | |
---|
| 6 | static hasMany = [inventoryItems : InventoryItem] |
---|
| 7 | |
---|
| 8 | static constraints = { |
---|
| 9 | name(maxSize:50,unique:true,blank:false) |
---|
| 10 | description(maxSize:100) |
---|
| 11 | } |
---|
| 12 | |
---|
| 13 | String toString() {"${this.name}"} |
---|
| 14 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.