Last change
on this file since 191 was
163,
checked in by gav, 15 years ago
|
Add costCode attribute to Site and regen non-detailed controller and views.
|
File size:
400 bytes
|
Rev | Line | |
---|
[116] | 1 | class Site { |
---|
| 2 | |
---|
| 3 | String name |
---|
| 4 | String description = "" |
---|
[163] | 5 | String costCode = "" |
---|
[116] | 6 | Boolean isActive = true |
---|
| 7 | |
---|
[121] | 8 | static hasMany = [inventoryStores: InventoryStore, systemSections: SystemSection] |
---|
[116] | 9 | |
---|
| 10 | // static belongsTo = [] |
---|
| 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.