Last change
on this file since 178 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
|
Line | |
---|
1 | class Site { |
---|
2 | |
---|
3 | String name |
---|
4 | String description = "" |
---|
5 | String costCode = "" |
---|
6 | Boolean isActive = true |
---|
7 | |
---|
8 | static hasMany = [inventoryStores: InventoryStore, systemSections: SystemSection] |
---|
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.