Last change
on this file since 450 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:
431 bytes
|
Rev | Line | |
---|
[116] | 1 | class Manufacturer { |
---|
| 2 | ManufacturerType manufacturerType |
---|
| 3 | String name |
---|
| 4 | String description = "" |
---|
| 5 | boolean isActive = true |
---|
| 6 | |
---|
[402] | 7 | static hasMany = [contacts: Contact, |
---|
[436] | 8 | addresses: Address] |
---|
[116] | 9 | |
---|
[436] | 10 | // static belongsTo = [] |
---|
[373] | 11 | |
---|
| 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.