Last change
on this file since 151 was
116,
checked in by gav, 15 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:
302 bytes
|
Rev | Line | |
---|
[116] | 1 | class StoreLocation { |
---|
| 2 | |
---|
| 3 | InventoryStore inventoryStore |
---|
| 4 | String bin |
---|
| 5 | Boolean isActive = true |
---|
| 6 | |
---|
| 7 | static hasMany = [storedItems: StoredItem] |
---|
| 8 | |
---|
| 9 | static belongsTo = [InventoryStore] |
---|
| 10 | |
---|
| 11 | static constraints = { |
---|
| 12 | bin(maxSize:50) |
---|
| 13 | } |
---|
| 14 | |
---|
| 15 | String toString() { |
---|
| 16 | "${this.bin}" |
---|
| 17 | } |
---|
| 18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.