Last change
on this file since 402 was
402,
checked in by gav, 15 years ago
|
Add contacts to Person, Supplier, Manufacturer and Site.
|
File size:
650 bytes
|
Line | |
---|
1 | class Site { |
---|
2 | |
---|
3 | String name |
---|
4 | String description = "" |
---|
5 | String comment = "" |
---|
6 | Boolean isActive = true |
---|
7 | |
---|
8 | static hasMany = [sections: Section, |
---|
9 | siteExtendedAttributes: SiteExtendedAttribute, |
---|
10 | inventoryStores: InventoryStore, |
---|
11 | contacts: Contact, |
---|
12 | addresses: Address] |
---|
13 | |
---|
14 | // static belongsTo = [] |
---|
15 | |
---|
16 | static constraints = { |
---|
17 | name(maxSize:50, unique:true, blank:false) |
---|
18 | description(maxSize:75) |
---|
19 | comment(maxSize:500) |
---|
20 | isActive() |
---|
21 | } |
---|
22 | |
---|
23 | String toString() { |
---|
24 | "${this.name}" |
---|
25 | } |
---|
26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.