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

Last change on this file since 417 was 402, checked in by gav, 15 years ago

Add contacts to Person, Supplier, Manufacturer and Site.

File size: 496 bytes
RevLine 
[116]1class 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.