-->
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: Backward compatibility lost with hibernate 4.1.9
PostPosted: Thu Feb 07, 2013 9:12 am 
Newbie

Joined: Fri Jun 30, 2006 12:11 am
Posts: 7
Location: Pune
I upgraded my project with hibernate 4.1.9 and spring 3.2.1 and noticed that hibernate throws RuntimeExceptions instead of checked exception in the earlier version (3.6.0 final was the one we used earlier). The code use case is as below.

We use spring jdbc template for executing jdbc queries and the application is configured to use JPA (JPATransactionManager and JPADialect) for mapped entities. When executing a query which could throw a exception for e.g. a select query on a table that does not exist, hibernate now proxies the jdbc statements and throws a SQLGrammerException (extends RuntimeException) instead of a checked exception - SQLException.

Since spring catch's SQLException, the code no longer executes the catch block and fails with an exception.

Kindly let me know if there is any configuration change I need to make which might be leading to this?


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.