Hibernate version: 2.1.6
Hi there, I'm struggling with joining two tables together in a 1:1 relationship.
Table 1: Member
Column members_Id
shares a close and growing relationship with:
Table 2: Policy
Column: member_id
So the join is on pol.member_id = member.members_id
How do I achieve this? If it's a straightforward member_id column in both tables it's easy. All iterations I've tried with mapping are failing currently.
I've even got the book and it's not really helping in this situation, has helped tremendously I'd recommend to newbies to buy a copy. If I've got a critisism it's that the whole 'legacy' database issue could be discussed in a chapter by itself at the end.
|