I'm trying to map a structure like this:
We have 3 entities, Foo, Bar and Baz.
Code:
<class name=Foo>
<many-to-one name=bar class=Bar column=BAR_ID unique=true />
</class>
<class name=Bar>
<one-to-one name=foo class=Foo property-ref=bar />
<many-to-one name=baz class=Baz column=BAZ_ID />
</class>
<class name=Baz>
<set name=bars>
<key column=BAZ_ID />
<one-to-many class=Bar />
</set>
<set name=foos>
????? PROBLEM ?????
</set>
</class>
I'm trying to establish another <set> property in Baz which contains a collection of Foos, but I have no idea how how to map this. Any help?