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"

   

 

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

  to be continued...

posted @ 2019-05-17 16:00  CodingYM  阅读(97)  评论(0编辑  收藏  举报