当前位置: 代码迷 >> 综合 >> save the transient instance before
  详细解决方案

save the transient instance before

热度:64   发布时间:2023-12-15 14:24:55.0
具体错误为在one-to-many中,对many进行 save时,由于没有加入one的外建,导致错误。
具体解决方法:
(1)、在one的hbm文件中 invest=true
(2)、在many保存前务必要求one的存在
  相关解决方案