Ignore:
Timestamp:
Mar 8, 2010, 4:37:12 PM (14 years ago)
Author:
gav
Message:

Change InventoryItem to have a preferred and many alternate suppliers and manufacturers.
Remove reverse InventoryItem references from Supplier and Manufacture domain classes.
InventoryCsvService updated.

Location:
trunk/grails-app/domain
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/Manufacturer.groovy

    r402 r436  
    66
    77    static hasMany = [contacts: Contact,
    8                                     addresses: Address,
    9                                     inventoryItems: InventoryItem]
     8                                    addresses: Address]
    109
    11     static belongsTo = [InventoryItem]
     10//     static belongsTo = []
    1211
    1312    static constraints = {
  • trunk/grails-app/domain/Supplier.groovy

    r402 r436  
    66
    77    static hasMany = [contacts: Contact,
    8                                     addresses: Address,
    9                                     inventoryItems: InventoryItem]
     8                                    addresses: Address]
    109
    11     static belongsTo = [InventoryItem]
     10//     static belongsTo = []
    1211
    1312    static constraints = {
Note: See TracChangeset for help on using the changeset viewer.