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

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

Add contacts to Person, Supplier, Manufacturer and Site.

File size: 496 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                                    inventoryItems: InventoryItem]
10
11    static belongsTo = [InventoryItem]
12
13    static constraints = {
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.