Hibernate version:
2.1
Name and version of the database you are using:
Oracle 9i
I have a legacy schema that I'm attempting to map onto hibernate2. I have two tables:
Code:
Member
MemberId
PersonId
Attributes
Person
PersonId
Attributes
MemberId and PersonId are generated by distinct Oracle sequences. From a Java perspective, ideally I would like to have Member derive from Person. My impression from the documentation is that hibernate expects the memberid and personid for the same object to have the same value, rather than linking via the personId fk in the member table.
Is there a way around this?
Thanks for your time,
Ben