source: trunk/grails-app/domain/Manufacturer.groovy @ 422

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

Add contacts to Person, Supplier, Manufacturer and Site.

File size: 508 bytes
Line 
1class Manufacturer {
2    ManufacturerType manufacturerType
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.