Hibernate主键、外键各类配置实例

Hibernate主键、外键各类配置实例


2024年4月4日发(作者:)

Hibernate学习

1、单主键、没有外键的Hibernate配置实例

"eBean"

table=

"tbNC"

>

"badCode"

column=

"NC_ID"

>

"assigned"

/>

"desc"

type=

"string"

column=

"NC_DESC"

>

2、单主键、有外键的Hibernate配置实例

"tBean"

table=

"tbProject"

>

"prjname"

column=

"PRJ_NAME"

type=

"string"

>

"assigned"

>

”customerCode”

class=

”erBean”

outer-join=

”ture”

not-null=

”true”

lazy=

”false”

>

”PRJ_CU_CODE”

>

3、双主键、没有外键的Hibernate配置实例

"onBean"

table=

"tbLocation"

>

"lgort"

column=

"LO_LGORT"

type=

"string"

>


发布者:admin,转转请注明出处:http://www.yc00.com/web/1712192126a2020522.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信