I have one Table1(parent table) which is having one primary key column (id) and two other columns (code_type and code_value) combination of both is unique.
Now another table Table2, which is a child table, has column (prob_type) which is referencing Table1 column (code_value), and NOT the primary key (id).
I dont think that there is any solution from DB point of view. Is there some property in Hibernate which I can use so that both the tables can be mapped or related through Hibernate mapping files?
|