Duplicate key error when doing INSERT with JPA native query I am trying to run a JPA native query which will INSERT data in a postgres database.