一个student对应一个StuIdCard
使用xml配置:
注意:虽然是一对一的外键单向关联,但是xml中使用的是<many-to-one unique="true"></many-to-one>
使用注解:
本文详细介绍了在软件开发中如何使用XML配置实现一个Student与一个StuIdCard的一对一关联,包括具体的配置代码示例及注意事项。
一个student对应一个StuIdCard
使用xml配置:
注意:虽然是一对一的外键单向关联,但是xml中使用的是<many-to-one unique="true"></many-to-one>
使用注解:

被折叠的 条评论
为什么被折叠?