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

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

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

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