Given the following trait and domain class definitions:
@grails.validation.Validateable
trait SynchronizedData {
String synchronizationId
static constraints = {
synchronizationId(blank: false, maxSize: 30, unique: true)
}
}
class Carrier implements SynchronizedData {
static constraints = {
importFrom SynchronizedData
}
}
the field "sychronizationId" in the domain class Carrier does not get the imported constraints from the SynchronizedData trait. Is this a limitation in the 2.5.x importFrom support that it doesn't import from traits? It does work when importing from a superclass.