Sorry, my first post above was missing a paragraph? Here is it complete
Michael,
Please could you elaborate on the solution for the "mapping 2 tables into one class" solution in Hibernate 2.1.x
I am using a legacy database and need to map two tables into a single class, it is also a one-to-one relationship. This is currently being done with a view which encapsulates a simple select with a join on primary keys.
I was hoping to move this join out to the hibernate mapping.
You mention
Quote:
hidden one-to-one association
in regards to the example from sjivan... does this mean wrap the UserDetail.Phone column in a class itself and then have it as a member of the User class?
I have many columns in both tables and so this would get quite clumsy...
Thanks