I think I am looking for opposite idea.
Let say I have mapping:
Code:
<class name="Cat" >
<property name="name"/>
<property name="nickName"/>
<joined-subclass name="DomesticCat">
<property name="owner" />
<property name="picture" .."LOB" />
</joined-subclass>
<joined-subclass name="WildCat">
<property name="forestName" />
</joined-subclass>
</class>
I have Cats, Wild Cats, and Domestic Cats.
Now I would like to display a list of all cats using general cat information only (the one from base Cat class). I would like to get instances of Cat class including Cats, Wild Cats, and Domestic Cats. But I do not want the hibernate engine to load subclass specific data - especially LOB's:)
Does any one have an idea how to load superclass specific data only?
Lukasz