一对一关联关系中包括:
1、基于主键的one-to-one
2、基于外键
基于主键的one-to-one 举例
Person
.xml
IDCard
.xml
hibernate.cfg.xml
一对一关联关系中包括:
1、基于主键的one-to-one
2、基于外键
基于主键的one-to-one 举例
Person
.xml
IDCard
.xml
hibernate.cfg.xml