source:
trunk/grails-app/domain/InventoryLocation.groovy
@
387
Last change on this file since 387 was 379, checked in by , 15 years ago | |
---|---|
File size: 344 bytes |
Rev | Line | |
---|---|---|
[175] | 1 | class InventoryLocation { |
[116] | 2 | |
3 | InventoryStore inventoryStore | |
[175] | 4 | String name |
[116] | 5 | Boolean isActive = true |
6 | ||
[175] | 7 | static hasMany = [inventoryItems: InventoryItem] |
[116] | 8 | |
[175] | 9 | // static belongsTo = [InventoryStore] |
[116] | 10 | |
11 | static constraints = { | |
[175] | 12 | name(maxSize:50) |
[116] | 13 | } |
14 | ||
15 | String toString() { | |
[379] | 16 | "${this.inventoryStore} -- ${this.name}" |
[116] | 17 | } |
18 | } |
Note: See TracBrowser
for help on using the repository browser.