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

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

Add contacts to Person, Supplier, Manufacturer and Site.

File size: 508 bytes
RevLine 
[116]1class Manufacturer {
2    ManufacturerType manufacturerType
3    String name
4    String description = ""
5    boolean isActive = true
6
[402]7    static hasMany = [contacts: Contact,
8                                    addresses: Address,
9                                    inventoryItems: InventoryItem]
[116]10
11    static belongsTo = [InventoryItem]
[373]12
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.