-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Prepared Statement query in SQL error dump
PostPosted: Thu Oct 18, 2007 11:23 am 
Newbie

Joined: Thu Oct 18, 2007 10:56 am
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.