Could not synchronize database state with session问题,说保存空

,可以在post.hbm.xml文件里设置inverse="true",这样就可以完美的解决这个问题,主要是person_post里的post为联合主键,它不能为空

Could not synchronize database state with session问题,说保存空

或者更新post岗位表时,会更新userrelation表,把bpost更新为空了,这可不行啊

也必须得设置inverse=true;如下图

Could not synchronize database state with session问题,说保存空

 

相关文章:

  • 2021-06-02
  • 2022-02-06
  • 2021-10-04
  • 2022-12-23
  • 2021-09-12
  • 2021-10-14
  • 2022-12-23
  • 2021-11-13
猜你喜欢
  • 2022-12-23
  • 2021-11-21
  • 2021-12-07
  • 2021-06-06
  • 2022-12-23
  • 2021-05-27
  • 2021-05-25
相关资源
相似解决方案