Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

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 :

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!