其他分享
首页 > 其他分享> > @OneToOne 匹配不到时

@OneToOne 匹配不到时

作者:互联网

@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