Hibernate version:3.1.3
Something I searched upon and did not get an answer to.
Well, to begin with, I am trying to implement Hibernate on legacy DB, which is pretty much denormalized.
Is there any way, how I would be able to write multiple hibernate mappings for a same class?
I faced this problem when I first mapped one column CA1 of Tabel A to a column in Table B CB1 as a foreign key in Table B. But, now I want to map the same column CA1 of Table A to be mapped as a foreign key in another table Table C too.
I get the duplicate mapping error, which I was expecting anyways.
Question is, how do I do this?
_________________ Somebody tell me..!
|