<hibernate-mapping package="com.allanlxf.hibernate.association.o2o.entity">
<class name="Car" table="car_pk_single" >
<id name="id" column="id" type="integer">
<generator class="foreign">
<param name="property">engine</param>
</generator>
</id>
<one-to-one name="engine" class="Engine" constrained="true" />
</class>
</hibernate-mapping>
<hibernate-mapping package="com.allanlxf.hibernate.association.o2o.entity">
<class name="Engine" table="engine_pk_single" >
<id name="id" column="id" type="integer">
<generator class="native"></generator>
</id>
</class>
</hibernate-mapping>
分享到:
相关推荐
NULL 博文链接:https://ganshisheng.iteye.com/blog/434420
hibernate单向一对多关联映射(注解版)
NULL 博文链接:https://huihai.iteye.com/blog/1243530
Hibernate学习:单向多对一关联 工程
hibernate主键实现一对一单向关联关系源码
这里包含了hibernate多对一单向关联关系实现源码,希望对你有用。
Hibernate
hibernate外键实现一对一单向关联关系源码
Hibernate 系列教程 单向一对多
个人的很详细的Hibernate一对一映射配置详解,对初学者有帮助!
Hibernate 一对一外键单向关联 Hibernate 一对一主键单向关联 Hibernate 一对一连接表单向关联 Hibernate 一对多外键单向关联 Hibernate 一对多连接表单向关联 Hibernate 多对一外键单向关联 Hibernate 多对一连接...
关于hiberante主键的一对一的映射,单向的,实例
Hibernate 一对多 外键 单向关联,有例子。
博文链接:https://shaqiang32.iteye.com/blog/201308
NULL 博文链接:https://paladin1988.iteye.com/blog/1627597
NULL 博文链接:https://profound-accumulation.iteye.com/blog/2243103
博文链接:https://shaqiang32.iteye.com/blog/201311
hibernate one-to-one 一对一唯一外键关联映射_单向 and 双向
NULL 博文链接:https://cdxs2.iteye.com/blog/1932507
NULL 博文链接:https://wjy320.iteye.com/blog/2007661