-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate Inaccurate Table.foreignKeys
PostPosted: Mon Jun 13, 2011 5:17 pm 
Newbie

Joined: Mon May 17, 2010 11:29 am
Posts: 12
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.