Forums Register Login

How to perform exception handling in Hibernate

+Pie Number of slices to send: Send
Hi,

Is there any way to handle the Exception in the code which we write using Hibernate.

Thanks & Regards,
Rajendra
+Pie Number of slices to send: Send
Not sure what you are asking here. Exception handling in Hibernate is no different than in normal Java code.
+Pie Number of slices to send: Send
 

Paul Sturrock wrote:Not sure what you are asking here. Exception handling in Hibernate is no different than in normal Java code.



Hi,
Paul Here I mean like there are some exceptions JDBCConnectionException, SqlGrammerException, ConstraintViolationException.. how can we handle this.

Regards,
Rajendra
+Pie Number of slices to send: Send
Hibernate wraps exceptions into HibernateException s. Well there are a few others, like LayInitiailizationException, NonUniqueObjectException.

Mark
If a regular clown is funny, then a larger clown would be funnier. Math. Verified by this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1007 times.
Similar Threads
How to call the stored procedures using Hibernate
Integrating Struts with springs
Webservice general question
md5 incoming data servlet inputstream
hibernate no row selected
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 07:34:03.