Hibernate多对一报错:
Hibernate多对一报错:
save the transient instance before flushing
具体错误为在one-to-many中,对many进行save时,由于没有加入one的外建,导致错误。具体解决方法:(1)、在one的hbm文件中 invest=true(2)、在many保存前务必要求one的存在
Hibernate多对一报错:
save the transient instance before flushing
具体错误为在one-to-many中,对many进行save时,由于没有加入one的外建,导致错误。具体解决方法:(1)、在one的hbm文件中 invest=true(2)、在many保存前务必要求one的存在
暂无评论。
评论功能维护中,当前仅展示历史评论。