One to One Mapping in Hibernate.

Firstly, we need to understand what "One to One mapping" is

  Suppose we have two tables Table A and Table B

  if each row in Table A is linked to each row in table B,

  and the number of rows in A = number of rows in B.

  Below is a good example of "One to One mapping"

   One to One Mapping in Hibernate.

 

2. How to achieve "One to One Mapping" in Hibernate?

  to be continued...