ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

@OneToOne 匹配不到时

2022-09-17 00:32:17  阅读:7  来源: 互联网

标签:NotFound 匹配 OneToOne NotFoundAction 报错 不到 false id


@OneToOne
@JoinColumn(name = "message_fileinfo_id",referencedColumnName = "id",insertable = false,updatable = false)
@NotFound(action = NotFoundAction.IGNORE)

@OneToOne匹配时,若message_fileinfo_id匹配不到id,则会报错,此时加上@NotFound(action = NotFoundAction.IGNORE)就不会报错了

标签:NotFound,匹配,OneToOne,NotFoundAction,报错,不到,false,id
来源: https://www.cnblogs.com/hui0618/p/16701723.html

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有