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.