Question:
Does Hibernate support the following table relationships?
Table A,
columns a,b,c,d,e
PK col a, col b
1. FK col a,c -> B.a,B.b Foriegn key to table B
2. FK col b -> C.a Foriegn key to table C
3. FK col a,d -> D.a,D.b Foriegn key to table D
note: same column is beening used in all tree Foreign keys.
(I know that I can't map the same column more than once (without insert=false, update=false))
I am using key-many-to-one element for case 1.
I am using key-property element for case 2.
what do I do for case 3???
Table B
columns a,b,c,d,e
PK cola, col b
Table C
columns a,b,c,d,e
PK col a
Table D
columns a,b,c,d,e
PK col a,col b
|