Last change
on this file since 757 was
373,
checked in by gav, 15 years ago
|
Fix miss spelt constraints in domain classes.
|
File size:
425 bytes
|
Rev | Line | |
---|
[116] | 1 | class 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.