Joined: Tue Feb 10, 2004 12:03 am Posts: 16
|
I have this strage situation where 2 columns in my table has same foriegn key.
Table A
Id
Type_id
CreatedDate
updatedDate
StatusID
Table B
Id
Label
Value
here type_id and StatusID of Table A refer to Id(primarykey) of Table B
in Java VO of table A i defined table B definitions with 2 different signatures and in my *.hbm.xml file i defined two <many-to-one> elements refereing to the same column like below
<many-to-one name="TableA" columns="Type_id">
<many-to-one name="TableOfA" columns="StatusID">
and when i builld the configuration i get error as Duplicate import of Table A.
does any one came across this kind of problem... if so please help to solve this.
PS: both the column values in the Table A will have different values, though they refere to the same column
|
|