Greetings, I'm using hibernate with Oracle and, try as I might, I'm unable to retrieve the actual primary key value of a record that's causing primary key violation. I've searched the forums and placed:
log4j.logger.org.hibernate.util.JDBCExceptionReporter=error
in my log4j properties but with no success. This is the only meaningful information I can retrieve:
insert into CHARGE (ACCOUNT_ID, BILL_PERIOD_END_DATE, BILL_PERIOD_START_DATE, BILLED_IND, CALCULATED_CHARGE, CALCULATED_DISCOUNT, CHARGE_CATEGORY, CHARGE_END_DATE, CHARGE_START_DATE, CLIN, CUSTOMER_ID, FINAL_CHARGE, GB_VOLUME, PRICING_STRUCTURE_CODE, PROCESS_DATE, PRODUCT_CODE, PRODUCT_TYPE, PRODUCT_VERSION_CODE, RATE, REQUEST_TITLE, REQUESTOR_NAME, SERVICE_CODE, SERVICE_REQUEST_ID, SUBSCRIPTION_ID, TIME_UNIT, TIME_VOLUME, CHARGE_ID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ORA-00001: unique constraint (CHARGE_ID_PK) violated
I've seen other posts whereby the users get something like this: SEVERE: Duplicate entry 'blablabla' for key 'PRIMARY'
What do I need to do to get this in my log?
|