Changeset 182 for trunk/grails-app/domain
- Timestamp:
- Nov 10, 2009, 1:26:53 PM (15 years ago)
- Location:
- trunk/grails-app/domain
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/InventoryItem.groovy
r175 r182 5 5 InventoryLocation inventoryLocation 6 6 Period averageDeliveryPeriod 7 Picture picture 7 8 String name 8 9 String description = "" … … 17 18 boolean enableReorder = true 18 19 20 static mapping = { 21 picture cascade: 'all-delete-orphan', lazy: true, inverse: true 22 } 23 19 24 static hasMany = [alternateItems: InventoryItem, 20 25 spareFor: Asset, … … 26 31 27 32 static constraints = { 33 picture(nullable:true) 28 34 name(unique:true, blank:false, maxSize:50) 29 35 description() … … 45 51 String toString() {"${this.name}"} 46 52 } 47
Note: See TracChangeset
for help on using the changeset viewer.