Last change
on this file since 420 was
402,
checked in by gav, 15 years ago
|
Add contacts to Person, Supplier, Manufacturer and Site.
|
File size:
496 bytes
|
Rev | Line | |
---|
[116] | 1 | class Supplier { |
---|
| 2 | SupplierType supplierType |
---|
| 3 | String name |
---|
| 4 | String description = "" |
---|
| 5 | boolean isActive = true |
---|
| 6 | |
---|
[402] | 7 | static hasMany = [contacts: Contact, |
---|
| 8 | addresses: Address, |
---|
| 9 | inventoryItems: InventoryItem] |
---|
[373] | 10 | |
---|
[116] | 11 | static belongsTo = [InventoryItem] |
---|
| 12 | |
---|
[373] | 13 | static constraints = { |
---|
[116] | 14 | name(maxSize:50,unique:true,blank:false) |
---|
| 15 | description(maxSize:100) |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | String toString() { |
---|
| 19 | "${this.name}" |
---|
| 20 | } |
---|
| 21 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.