| Rev | Line | |
|---|
| [116] | 1 | class Site { |
|---|
| 2 | |
|---|
| 3 | String name |
|---|
| 4 | String description = "" |
|---|
| [332] | 5 | String comment = "" |
|---|
| [116] | 6 | Boolean isActive = true |
|---|
| 7 | |
|---|
| [268] | 8 | static hasMany = [sections: Section, |
|---|
| [273] | 9 | siteExtendedAttributes: SiteExtendedAttribute, |
|---|
| [397] | 10 | inventoryStores: InventoryStore, |
|---|
| 11 | addresses: Address] |
|---|
| [116] | 12 | |
|---|
| 13 | // static belongsTo = [] |
|---|
| 14 | |
|---|
| 15 | static constraints = { |
|---|
| [268] | 16 | name(maxSize:50, unique:true, blank:false) |
|---|
| [332] | 17 | description(maxSize:75) |
|---|
| 18 | comment(maxSize:500) |
|---|
| [268] | 19 | isActive() |
|---|
| [116] | 20 | } |
|---|
| 21 | |
|---|
| 22 | String toString() { |
|---|
| 23 | "${this.name}" |
|---|
| 24 | } |
|---|
| 25 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.