Hi,
Quote:
I think the cause is hibernate is generating insert statements as opposed to update statements
I really don't think that's the cause.
I suggest you as first step to disable jdbc-batching for the moment by specifying
Code:
hibernate.jdbc.batch_size = 0
this should give you more clear exception messages when jdbc-exceptions raise.
Then please report the exception again
with complete message and full-stacktrace.
Usually (it depends on the undelying database and driver) there's also written
which Constraint was violated.
Furthermore I suggest you to log all the jdbc-statements with p6spy.
Knowing the last jdbc-statement before the ConstraintViolationException raises and knowing which constraint is getting violated,
should help you to understand what's going wrong.