Last change
on this file since 156 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:
367 bytes
|
Rev | Line | |
---|
[116] | 1 | class InventoryStore { |
---|
| 2 | |
---|
| 3 | Site site |
---|
| 4 | String name |
---|
| 5 | String description = "" |
---|
| 6 | Boolean isActive = true |
---|
| 7 | |
---|
| 8 | static hasMany = [storeLocations: StoreLocation] |
---|
| 9 | |
---|
| 10 | static belongsTo = [Site] |
---|
| 11 | |
---|
| 12 | static constraints = { |
---|
| 13 | name(maxSize:50,unique:true,blank:false) |
---|
| 14 | description(maxSize:100) |
---|
| 15 | } |
---|
| 16 | |
---|
| 17 | String toString() { |
---|
| 18 | "${this.name}" |
---|
| 19 | } |
---|
| 20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.