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

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

Add comment attribute to Site and limit description to 75 char.
Update detailed views to suite.

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