• Post Reply Bookmark Topic Watch Topic
  • New Topic

With Respect to exceptions in Hibernate Framework

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Good Day to all ,

I am doing a insert operation where i am trying to save the POJO class with values already existing in DataBase .

I am getting "org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update " .

I am confused because as per the docs i should get NonUniqueObjectException .

Please share your ideas.

 
I'm still in control here. LOOK at this tiny ad!
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!