package sample class Family{ String father String mother container Child[] children opposite family } interface Child{ } class Boy extends Child{ container Family family opposite children String name } class Girl extends Child{ container Family family opposite children String name }
Anton,
Isn't what you describe that you want exactly what you already get?
'Couldn't resolve reference to GenFeature 'family'.'
'The opposite of the opposite may not be a reference different from this one'
class Family{ String father String mother container Child[] children opposite family } interface Child{ container Family family opposite children } class Boy extends Child{ String name } class Girl extends Child{ String name }