source: branches/features/purchaseOrders/grails-app/domain/Site.groovy @ 963

Last change on this file since 963 was 456, checked in by gav, 15 years ago

Set batchSize:1000 on asset tree domain classes.

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