source: trunk/grails-app/domain/InventoryLocation.groovy @ 613

Last change on this file since 613 was 562, checked in by gav, 14 years ago

Install searchable plugin, configure and start inventory search.

File size: 442 bytes
Line 
1class 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.name}"
17    }
18
19    static searchable = {
20        root false // only index as a component of InventoryItem.
21        only = ['name']
22    }
23
24}
Note: See TracBrowser for help on using the repository browser.