Testcase from Rien ... modified by Rob.
... @Entity public class OCar extends BasicDomain { ... @OneToOne(mappedBy="car",cascade=CascadeType.ALL) private OGearBox gearBox; @OneToOne(mappedBy="car",cascade=CascadeType.ALL) private OEngine engine; ...
As per patch from Rien .. the fix is to DefaultDbSqlContext.popTableAlias() ... so set the currentPrefix back to null.
The current prefix is used to get a relative table alias for Reference beans and secondary properties.
fixed in HEAD.