异常信息为:could not execute statement; SQL [n/a]; constraint [XXXX.pk_sourcecd_srcorderitemid]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement
看了一下,是违反唯一约束条件
一开始傻逼了以为是主键冲突了,后来改了一下主键的生成方式,加了个时间戳,居然还冲突,我仔细一看发现是唯一性索引冲突了
To be continued...