:could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.except

此错误异常
:could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.except_第1张图片
在项目中出现的。删除、保存数据都会可能出现
分析:
删除数据时,可能跟级联有关系,(一般只出现在删除最前面的数据时会出现),可以看看删除后面的数据看下是否还会报此错误。
保存数据的时候,可能是提交要保存的数据和数据库中的字段不匹配。

你可能感兴趣的:(报错异常)