miguelangel.garcia
05/06/2019, 6:14 AMclass One {
static hasMany = [twos: Two]
}
class Two {
static belongsTo = [anotherEntity: AnotherEntity, one: One]
static hasMany = [ones: One]
}
This is possible, but imagine that you want to the belongsTo One relation without name, as:
static belongsTo = [anotherEntity: AnotherEntity, One]
This is not possible because you cannot have these two arguments at the same time. So if you want to have something like this, is always needed to have the two relation with name, right?