Last change
on this file since 963 was
436,
checked in by gav, 15 years ago
|
Change InventoryItem to have a preferred and many alternate suppliers and manufacturers.
Remove reverse InventoryItem references from Supplier and Manufacture domain classes.
InventoryCsvService updated.
|
File size:
419 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, |
---|
[436] | 8 | addresses: Address] |
---|
[373] | 9 | |
---|
[436] | 10 | // static belongsTo = [] |
---|
[116] | 11 | |
---|
[373] | 12 | static constraints = { |
---|
[116] | 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.