Is there any possibility to tell hibernate that we don’t want an
Code:
BatchingBatch: HHH000315: Exception executing batch [Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1]
when we deleting an Entity.
In a legacy database it can happen that a trigger deletes a record before the hibernate sends the delete of the entity.
In other words: We are looking for a possibility to configure the return of executeBatch() in BatchingBatch
Code:
rowCounts = statement.executeBatch()
to SUCCESS_NO_INFO (-2) in such a case.