• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in using Hibernate SaveOrUpdate() method with Postgres and SQL DB

 
sohaib yasir
Ranch Hand
Posts: 51
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I am in trouble and unable to get rid of this situation. I am facing a wired issue that hibernate SaveOrUpdate() method insert a new record in table if i am using SQL DB and did not insert any row when using Postgres DB. I am unable to find solution. I need urgent help to resolve this issue. My code does not throw any kind of exception nor inserting record in Postgres DB.

My saveorUpdate method code running both DBs.



My bean for this :





 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
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!