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

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

Improvements to inventory text search, add inventoryGroup and hide Limit Search unless one of the values is true.

File size: 432 bytes
RevLine 
[116]1class InventoryGroup {
2    String name
3    String description = ""
4    boolean isActive = true
5
6    static hasMany = [inventoryItems : InventoryItem]
7
8    static constraints = {
9        name(maxSize:50,unique:true,blank:false)
10        description(maxSize:100)
11    }
12
13    String toString() {"${this.name}"}
[566]14
15    static searchable = {
16        root false // only index as a component of InventoryItem.
17        only = ['name']
18    }
19
[116]20}
Note: See TracBrowser for help on using the repository browser.