I have the following relationships:
Class P can have 0 or more Class A
Class M inherits from A, and can have 0 or more Class U
I can insert this graph just fine. Everything shows up in the database correctly. However, when I do a session.get(P.class, oid) I get everything but the U collection. P6Spy indicates that there is no SQL for getting this collection from the database.
Relevant ( I think, will post the others.) hbm.xml
<class
name="A"
dynamic-update="false"
dynamic-insert="false"
>
....snip properties that work...
<joined-subclass
name="M"
dynamic-update="false"
dynamic-insert="false"
>
<key
column="subclassKey"
/>
<set
name="U"
lazy="false"
inverse="true"
cascade="save-update"
sort="unsorted"
>
<key
column="M_oid"
/>
<one-to-many
class="U"
/>
</set>
</joined-subclass>
</class>
Any help would be appreciated.
_________________ Grim Shieldsson
|