source:
trunk/grails-app/domain/AssetExtendedAttribute.groovy
@
888
Last change on this file since 888 was 664, checked in by , 14 years ago | |
---|---|
File size: 384 bytes |
Rev | Line | |
---|---|---|
[121] | 1 | class AssetExtendedAttribute { |
2 | ||
[268] | 3 | ExtendedAttributeType extendedAttributeType |
[124] | 4 | Asset asset |
[121] | 5 | |
6 | String value | |
7 | boolean isActive = true | |
8 | ||
9 | // static hasMany = [] | |
10 | ||
[124] | 11 | static belongsTo = [Asset] |
[121] | 12 | |
[268] | 13 | static constraints = { |
[664] | 14 | value(blank:false, maxSize:100) |
[268] | 15 | isActive() |
16 | } | |
[121] | 17 | |
18 | String toString() { | |
[268] | 19 | "${extendedAttributeType.name}: ${this.value}" |
[121] | 20 | } |
21 | } | |
22 |
Note: See TracBrowser
for help on using the repository browser.