|
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
|