source: trunk/grails-app/domain/Supplier.groovy @ 943

Last change on this file since 943 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
Line 
1class Supplier {
2    SupplierType supplierType
3    String name
4    String description = ""
5    boolean isActive = true
6
7    static hasMany = [contacts: Contact,
8                                    addresses: Address]
9
10//     static belongsTo = []
11
12    static constraints = {
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.