class AssetExtendedAttribute {

    ExtendedAttributeType extendedAttributeType
    Asset asset

    String value
    boolean isActive = true

//     static hasMany = []

    static belongsTo = [Asset]

    static constraints = {
        value(blank:false, maxSize:100)
        isActive()
    }

    String toString() {
        "${extendedAttributeType.name}: ${this.value}"
    }
}

