source: trunk/grails-app/domain/InventoryMovementType.groovy @ 967

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

Fix miss spelt constraints in domain classes.

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