Guys,

I'm trying to properly set up a relationship between a class
View, which has a FDMS destination called View, and
in Hibernate has a relationship called parent which points to a
ViewContainer.

The trick is that ViewContainer is a sub-class of
View. So normally I would create my managed relationship like
this:

<destination id="View">
...
<many-to-one property="parent" destination="ViewContainer"
lazy="true" />
...
</destination>

and

<destination id="ViewContainer" >
...
<one-to-many property="childViews"
destination="Views" lazy="false" />
...
</destination>


NOW isn't this going to wreak havoc on FDS if the same object (a
ViewContainer) actually matches more than one destination?

specifically when my Application class has a managed relationship to
View, and those views could be
ViewContainers...

How should this be solved properly?

thanks,
PW


Reply via email to