source: trunk/grails-app/domain/StoredItem.groovy @ 166

Last change on this file since 166 was 146, checked in by gav, 15 years ago

Remove invalid contraints reported by Tomcat debug logs.

File size: 330 bytes
RevLine 
[116]1class StoredItem {
2
3    InventoryItem inventoryItem
4    StoreLocation storeLocation
5    Integer quantity = 0
6
7    static belongsTo = [InventoryItem]
8
9    static constraints = {
[146]10        quantity(min:0)
[116]11    }
12
13    String toString() {
[125]14        "${this.quantity} item(s) at ${storeLocation} in ${storeLocation.inventoryStore}"
[116]15    }
16}
Note: See TracBrowser for help on using the repository browser.