not-null property references a null or transient value 导致无法update数据

错误:not-null property references a null or transient value:

意思:一个不允许为Null的属性引用了一个为Null的或者无效的值。 

原因:在***.hbm.xml中的

 

去掉 not-null="true" 在property加上update="false"


猜你喜欢

转载自blog.csdn.net/weixin_41990258/article/details/80856415