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

Last change on this file since 439 was 402, checked in by gav, 15 years ago

Add contacts to Person, Supplier, Manufacturer and Site.

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