Is there anyway to get Hibernate to output the full query even if it's a prepared statement?
Here's my error:
javax.servlet.ServletException: #{driverBeanList.leavDriverPage}: javax.faces.el.EvaluationException: org.springframework.dao.DataIntegrityViolationException: Hibernate operation: Could not execute JDBC batch update; SQL [update VEHICLE set VIN=?, YEAR=?, MAKE=?, MODEL=?, BODY_TYPE=?, VEHICLE_TYPE=?, MILES_DRIVEN=?, ANTI_THEFT_FLAG=?, PRIMARY_USAGE=?, VEHICLE_LOAN_FLAG=?, SYMBOL=?, VIN_FACTOR=?, DISCOUNT=?, DRIVER_NUM=?, PRIOR_DAMAGE_FLAG=?, PRIOR_DAMAGE_NOTES=? where QUOTE_ID=? and VEHICLE_NUM=?]; ORA-02291: integrity constraint (OLDIRECT_OWNER.VEHICLE_DRIVER_FK) violated - parent key not found
; nested exception is java.sql.SQLException: ORA-02291: integrity constraint (OLDIRECT_OWNER.VEHICLE_DRIVER_FK) violated - parent key not found
I have no idea why this error occurred unless the values in the where clause are not what I think they are. If I could see the value behind the ? that would be awesome.
Thanks!
Patrick
|