How to handle JPA unique constraint violations?

后端 未结 8 1797
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-05 14:05

When a unique constraint is violated, a javax.persistence.RollbackException is thrown. But there could be multiple reasons to throw a RollbackException

8条回答
提交回复
热议问题