I've recently added an inheritance hierarchy to our code and the generated code won't compile (using SelfServicing, v2.0).
The relevant hierarchy bit looks like this:
Department -- subtypes: IVDepartment, ...
|
Position -- subtypes: IVPosition, ...
This is a target-per-entity-hierarchy setup. Department and Position are abstract. The relationship in the DB is Position(Parent) -> Department(ID). Parent and ID are in the base classes.
In the generated code, the DepartmentDAO has code like this:
public bool GetMultiUsingPositionCollectionViaIVPosition(<snip>)
{
<snip>
relations.Add(DepartmentEntity.Relations.IVPositionEntityUsingParent, "IVPosition_");
<snip>
}
but there is no such relation on DepartmentEntity; the only Department - Position relation is PositionEntityUsingParent.