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

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

Fix miss spelt constraints in domain classes.

File size: 385 bytes
Line 
1class Supplier {
2    SupplierType supplierType
3    String name
4    String description = ""
5    boolean isActive = true
6
7    static hasMany = [inventoryItems: InventoryItem]
8
9    static belongsTo = [InventoryItem]
10
11    static constraints = {
12        name(maxSize:50,unique:true,blank:false)
13        description(maxSize:100)
14    }
15
16    String toString() {
17        "${this.name}"
18    }
19}
Note: See TracBrowser for help on using the repository browser.