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

Last change on this file since 153 was 121, checked in by gav, 16 years ago

Extensive update to Asset ERD and associated domain classes, not compiled or tested.

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