Relative Content

Tag Archive for javaspring-bootjpa

ORA-00001: unique constraint (PCSPROD.PK_PHONE_NUMBER_HISTORY) violated when timestamp is a unique key

org.hibernate.exception.ConstraintViolationException: could not execute statement | SQLIntegrityConstraintViolationException : ORA-00001: unique constraint (TABLE_NAME) violated when timestamp is a unique key. How to handle this in Spring Boot?
We have 2 fields as combination for Unique key. one is the User name and the other is time stamp. When we get 2 requests at a time for the same user name, it is failing with the violation error and filling up the logs