Hello,
I am trying to use the Hibernate API to pull the list of foreign keys from a mapped filed. This works fine so long as the many-to-one doesn't utilize the property-ref attribute.
For example:
Code:
<many-to-one name="solution" class="com.example.Solution" fetch="join" lazy="false" not-found="ignore" property-ref="number" not-null="true">
<column name="Team_Number" />
</many-to-one>
<many-to-one name="priority" class="com.example.Priority" fetch="join" not-found="ignore" lazy="false" not-null="true">
<column name="Priority_Number" />
</many-to-one>
The call to org.hibernate.mapping.Table.foreignKeyIterator results in a single entry for priority and totally misses on solution. Is there a way to get a handle to all many-to-one mappings from the table?
Thanks