source: trunk/grails-app/domain/Site.groovy @ 275

Last change on this file since 275 was 273, checked in by gav, 15 years ago

Correct site-inventoryStores relationship and generate-all.
Copy section views over sectionDetailed.

File size: 495 bytes
RevLine 
[116]1class Site {
2
3    String name
4    String description = ""
5    Boolean isActive = true
6
[268]7    static hasMany = [sections: Section,
[273]8                                siteExtendedAttributes: SiteExtendedAttribute,
9                                inventoryStores: InventoryStore]
[116]10
11//     static belongsTo = []
12
13    static constraints = {
[268]14        name(maxSize:50, unique:true, blank:false)
[116]15        description(maxSize:100)
[268]16        isActive()
[116]17    }
18
19    String toString() {
20        "${this.name}"
21    }
22}
Note: See TracBrowser for help on using the repository browser.