source: trunk/grails-app/domain/AssetSubItemExtendedAttribute.groovy @ 797

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

Domain change: add blank:false constraint to AssetExtendedAttribute and AssetSubItemExtendedAttribute.

  • Property svn:executable set to *
File size: 412 bytes
RevLine 
[268]1class AssetSubItemExtendedAttribute {
2
3    ExtendedAttributeType extendedAttributeType
4    AssetSubItem assetSubItem
5
6    String value
7    boolean isActive = true
8
9//     static hasMany = []
10
11    static belongsTo = [AssetSubItem]
12
13    static constraints = {
[664]14        value(blank:false, maxSize:100)
[268]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.