I’m facing several problems setting up a One to one associations.
Can you help me set up the relationship using annotations for the following table.
Login -> (id, username, password)
Members -> (member_id, name, address)
Here member_id is same as id in login.
Here’s the example that the Hibernate documentation provides:
Replace
PersonwithLogin, andMedicalHistorywithMember, add the fields you need, and you have your answer.