I have two classes, super class and subclass. (class Foo, and class Bar extends Foo).
They use same Hibernate descriptor file:
Code:
<class name="Foo" table="foo_table" lazy="false">
…
…
<joined-subclass name="Bar" table="far_table">
…
The foo_table has a raw with the specified id, but the bar_table is empty. In this case I would like the Bar object returned to me with Foo’s properties populated, but because the inner join returns no rows, I get nothing from Hibernate.
I think the way to fix it would be to force Hibernate to use outer join. Any idea on how to do it with joined-subclass?