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
Line 
1class InventoryMovementType {
2    String name
3    String description = ""
4    boolean incrementsInventory = false
5    boolean isActive = true
6
7    static hasMany = [inventoryMovements: InventoryMovement]
8
9    static constraints = {
10        name(maxSize:50,unique:true,blank:false)
11        description(maxSize:100)
12        incrementsInventory()
13        isActive()
14    }
15
16    String toString() {
17        "${this.name}"
18    }
19}
Note: See TracBrowser for help on using the repository browser.