No, the problem is not a relationship saved twice, apparently the problem is a relationship that should be deleted and then re-saved, but apparently the delete is not performed?!?
[code]13:11:39,098 DEBUG [SQL] delete from PARTY_RELATIONSHIP where PARTY_ID_TO=? and FROM_DATE=? and THRU_DATE=? and DESCRIPTION=? and RELATIONSHIP_TYPE_ID=? and PARTY_ID_FROM=? Hibernate: delete from PARTY_RELATIONSHIP where PARTY_ID_TO=? and FROM_DATE=? and THRU_DATE=? and DESCRIPTION=? and RELATIONSHIP_TYPE_ID=? and PARTY_ID_FROM=? 13:11:39,098 DEBUG [BatcherImpl] preparing statement 13:11:39,098 DEBUG [IntegerType] binding '58333' to parameter: 1 13:11:39,098 DEBUG [IntegerType] binding '58333' to parameter: 1 13:11:39,098 DEBUG [TimestampType] binding null to parameter: 2 13:11:39,098 DEBUG [TimestampType] binding null to parameter: 2 13:11:39,098 DEBUG [TimestampType] binding null to parameter: 3 13:11:39,098 DEBUG [TimestampType] binding null to parameter: 3 13:11:39,098 DEBUG [StringType] binding null to parameter: 4 13:11:39,098 DEBUG [StringType] binding null to parameter: 4 13:11:39,108 DEBUG [Cascades] id unsaved-value strategy NULL 13:11:39,108 DEBUG [IntegerType] binding '2294' to parameter: 5 13:11:39,108 DEBUG [IntegerType] binding '2294' to parameter: 5 13:11:39,108 DEBUG [Cascades] id unsaved-value strategy NULL 13:11:39,108 DEBUG [IntegerType] binding '58335' to parameter: 6 13:11:39,108 DEBUG [IntegerType] binding '58335' to parameter: 6 13:11:39,108 DEBUG [BatcherImpl] Adding to batch 13:11:39,108 DEBUG [BasicCollectionPersister] done deleting collection rows: 1 deleted 13:11:39,108 DEBUG [BasicCollectionPersister] Updating rows of collection: it.esselunga.ecommerce.data.model.Party.relatedPartiesFrom#58333 13:11:39,108 DEBUG [BasicCollectionPersister] done updating rows: 0 updated 13:11:39,108 DEBUG [BasicCollectionPersister] Inserting rows of collection: [it.esselunga.ecommerce.data.model.Party.relatedPartiesFrom#58333] 13:11:39,108 DEBUG [BatcherImpl] Executing batch size: 1 13:11:39,118 DEBUG [BatcherImpl] success of batch update unknown: 0 13:11:39,118 DEBUG [BatcherImpl] done closing: 0 open PreparedStatements, 0 open ResultSets 13:11:39,118 DEBUG [BatcherImpl] closing statement 13:11:39,128 DEBUG [BatcherImpl] about to open: 0 open PreparedStatements, 0 open ResultSets 13:11:39,128 DEBUG [SQL] insert into PARTY_RELATIONSHIP (PARTY_ID_TO, FROM_DATE, THRU_DATE, DESCRIPTION, RELATIONSHIP_TYPE_ID, PARTY_ID_FROM) values (?, ?, ?, ?, ?, ?) Hibernate: insert into PARTY_RELATIONSHIP (PARTY_ID_TO, FROM_DATE, THRU_DATE, DESCRIPTION, RELATIONSHIP_TYPE_ID, PARTY_ID_FROM) values (?, ?, ?, ?, ?, ?) 13:11:39,128 DEBUG [BatcherImpl] preparing statement 13:11:39,128 DEBUG [IntegerType] binding '58333' to parameter: 1 13:11:39,128 DEBUG [IntegerType] binding '58333' to parameter: 1 13:11:39,128 DEBUG [TimestampType] binding null to parameter: 2 13:11:39,128 DEBUG [TimestampType] binding null to parameter: 2 13:11:39,128 DEBUG [TimestampType] binding null to parameter: 3 13:11:39,128 DEBUG [TimestampType] binding null to parameter: 3 13:11:39,128 DEBUG [StringType] binding null to parameter: 4 13:11:39,128 DEBUG [StringType] binding null to parameter: 4 13:11:39,128 DEBUG [Cascades] id unsaved-value strategy NULL 13:11:39,128 DEBUG [IntegerType] binding '2294' to parameter: 5 13:11:39,128 DEBUG [IntegerType] binding '2294' to parameter: 5 13:11:39,128 DEBUG [Cascades] id unsaved-value strategy NULL 13:11:39,138 DEBUG [IntegerType] binding '58335' to parameter: 6 13:11:39,138 DEBUG [IntegerType] binding '58335' to parameter: 6 13:11:39,138 DEBUG [BatcherImpl] Adding to batch 13:11:39,138 DEBUG [BasicCollectionPersister] done inserting rows: 1 inserted 13:11:39,138 DEBUG [BatcherImpl] Executing batch size: 1 13:11:39,168 DEBUG [JDBCExceptionReporter] SQL Exception java.sql.BatchUpdateException: ORA-00001: violata restrizione di unicit
|