Last change
on this file since 119 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:
271 bytes
|
Rev | Line | |
---|
[116] | 1 | class StoredItem { |
---|
| 2 | |
---|
| 3 | InventoryItem inventoryItem |
---|
| 4 | StoreLocation storeLocation |
---|
| 5 | Integer quantity = 0 |
---|
| 6 | |
---|
| 7 | static belongsTo = [InventoryItem] |
---|
| 8 | |
---|
| 9 | static constraints = { |
---|
| 10 | quantity(minSize:0) |
---|
| 11 | } |
---|
| 12 | |
---|
| 13 | String toString() { |
---|
| 14 | "${this.quantity}" |
---|
| 15 | } |
---|
| 16 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.