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