source: trunk/grails-app/domain/UnitOfMeasure.groovy @ 545

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

Fix miss spelt constraints in domain classes.

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