Assume we have a parent class and a child class each in a one to many releationship with the classes ParentAssoc and ChildAssoc as follows:
class Parent {
def hasMany = [parentAssoc:ParentAssoc]
static mappedBy = [parentAssoc:"parent"]
}
class ParentAssoc {
Parent parent
String paProp
def belongsTo = Parent
}
class Child extends Parent {
def hasMany = [childAssoc:ChildAssoc]
static mappedBy = [childAssoc:"child"]
}
class ChildAssoc {
Child child
String caProp
def belongsTo = Child
}
After running create-all for all these domain classes, the resulting edit view for the domain class child has a link for adding a ParentAssoc but no link for adding a ChildAssoc.
I have isolated this problem and put into a webtest.
(Webtest plugin stripped from zipfile)