root/trunk/grails-app/domain/InventoryStore.groovy @ 116

Revision 116, 367 bytes (checked in by gav, 5 years ago)

First commit of Inventory domain, including domain-classes, controllers, views and bootstrap. Also double check/adjust as required security extends in controllers.

Line 
1class InventoryStore {
2
3    Site site
4    String name
5    String description = ""
6    Boolean isActive = true
7
8    static hasMany = [storeLocations: StoreLocation]
9
10    static belongsTo = [Site]
11
12    static constraints = {
13        name(maxSize:50,unique:true,blank:false)
14        description(maxSize:100)
15    }
16
17    String toString() {
18        "${this.name}"
19    }
20}
Note: See TracBrowser for help on using the browser.