荒野剧场

@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)就不会报错了

posted on 2022-09-16 23:58  荒野剧场  阅读(29)  评论(0编辑  收藏  举报

导航