当前位置: 代码迷 >> 综合 >> java.sql.SQLIntegrityConstraintViolationException: ORA-00001: 违反唯一约束条件
  详细解决方案

java.sql.SQLIntegrityConstraintViolationException: ORA-00001: 违反唯一约束条件

热度:35   发布时间:2023-10-23 16:34:36.0

异常信息为:could not execute statement; SQL [n/a]; constraint [XXXX.pk_sourcecd_srcorderitemid]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement

看了一下,是违反唯一约束条件

一开始傻逼了以为是主键冲突了,后来改了一下主键的生成方式,加了个时间戳,居然还冲突,我仔细一看发现是唯一性索引冲突了

java.sql.SQLIntegrityConstraintViolationException: ORA-00001: 违反唯一约束条件

 To be continued...

  相关解决方案