source: branches/features/purchaseOrders/grails-app/domain/SiteExtendedAttribute.groovy @ 893

Last change on this file since 893 was 268, checked in by gav, 15 years ago

Refactor classes for asset tree refinement.
Regenerate views and controllers to suite.

File size: 367 bytes
Line 
1class SiteExtendedAttribute {
2
3    ExtendedAttributeType extendedAttributeType
4    Site site
5
6    String value
7    boolean isActive = true
8
9//     static hasMany = []
10
11    static belongsTo = [Site]
12
13    static constraints = {
14        value(maxSize:100)
15        isActive()
16    }
17
18    String toString() {
19        "${extendedAttributeType.name}: ${this.value}"
20    }
21}
22
Note: See TracBrowser for help on using the repository browser.