Changeset 562 for trunk/grails-app/domain
- Timestamp:
- Jun 2, 2010, 4:31:17 PM (15 years ago)
- Location:
- trunk/grails-app/domain
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Asset.groovy
r456 r562 30 30 } 31 31 32 static searchable = { 33 root false // only index as a component of InventoryItem. 34 only = ['name', 'description', 'comment'] 35 } 36 32 37 // This additional setter is used to convert the checkBoxList string or string array 33 38 // of ids selected to the corresponding domain objects. -
trunk/grails-app/domain/InventoryItem.groovy
r484 r562 61 61 String toString() {"${this.name}"} 62 62 63 static searchable = { 64 only = ['name', 'description', 'comment', 'inventoryLocation', 'spareFor'] 65 //name boost: 1.5 66 inventoryLocation component: true 67 spareFor component: true 68 } 69 63 70 def afterInsert = { 64 71 addReverseAlternateItems() -
trunk/grails-app/domain/InventoryLocation.groovy
r389 r562 16 16 "${this.name}" 17 17 } 18 19 static searchable = { 20 root false // only index as a component of InventoryItem. 21 only = ['name'] 22 } 23 18 24 }
Note: See TracChangeset
for help on using the changeset viewer.