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: multicolumn foreign key
PostPosted: Wed Mar 07, 2007 1:41 pm 
Newbie

Joined: Wed Mar 07, 2007 1:29 pm
Posts: 3
Hi,

I have 2 columns (conditionGroupId,primeResultId) in 1 table(Totsodrs) which are foreign keys related to another table(Rsltcondval). How can I specify this in my hibernate mapping file please?
I got this error:

Duplicate property mapping of rsltcondval found in com.galderma.rkp.researchproduct.beans.Totsodrs


Here is my Hibernate mapping file:

<hibernate-mapping package="com.galderma.rkp.researchproduct.beans">

<class name="Totsodrs" table="PROD.TOTSODRS_VIEW"

lazy="false">

<id name="id" column="ttordirno" />

<property name="conditionGroupId" column="condgroupno_rslt" />

<one-to-one name="objdtail" class="com.galderma.rkp.researchproduct.beans.Objdtail" outer-join="true" foreign-key="cdCode"/>

<one-to-one name="rsltcondval" class="com.galderma.rkp.researchproduct.beans.Rsltcondval" outer-join="true" foreign-key="conditionGroupId"/>

<one-to-one name="rsltcondval" class="com.galderma.rkp.researchproduct.beans.Rsltcondval" outer-join="true" foreign-key="primeResultId"/>


</class>

</hibernate-mapping>

Thank you very much in advance!

cheers


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.