So I've got a:
Code:
SEVERE: Could not execute JDBC batch update
Batch entry 15 update XX_VEHICLE_EVENT set CSO_ID= was aborted.
net.sf.hibernate.JDBCException: Could not execute JDBC batch update
And with show_sql I see:
Code:
Hibernate: update XX_VEHICLE_EVENT set CSO_ID=?, EVENT_NAME=?, EVENT_TYPE=?, ODOMETER=?, FUEL=?, LOAD_GROUP=? where VEHICLE_EVENT_ID=?
But how can I learn what data was in slot 15? Which primary key was involved?
I've tried looping to get details, but all I get is:
Code:
Looping to print all chained exceptions:
SQL State=23505 Hash=26342940 Exception=org.postgresql.util.PSQLException: ERROR: duplicate key violates unique constraint "no_duplicate_events"
I know the SQL cause, just not which particular data triggered it.