Quote:
Does this work as designed?
yes. the alternative option is to do something like this:
Code:
<set name="subDepartments"
where = "DISCRIMINATOR='Department'>
<key column="DEPARTMENT_DEPARTMENT_ID"/>
<one-to-many class="Department"/>
</set>
Quote:
Why does the hibernate-documentation recommend, not to use joined-subclasses, what sounds more straightforward?
It performs better, and the generated SQL is more understandable.
Quote:
And what still bothers me is that hibernate permanently uses (self-)joins when trying to retrieve the object-tree.
Eh?
I don't know what you are saying .... but you do know how to disable outer join fetching, right?