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

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

Add address feature.

File size: 599 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                                addresses: Address]
12
13//     static belongsTo = []
14
15    static constraints = {
16        name(maxSize:50, unique:true, blank:false)
17        description(maxSize:75)
18        comment(maxSize:500)
19        isActive()
20    }
21
22    String toString() {
23        "${this.name}"
24    }
25}
Note: See TracBrowser for help on using the repository browser.