Question

Is there something like of DuplicateKeyException applicable to javax.persistence.*?

I've found this exception for ejb lib only: DuplicateKeyException

Thank you.

Was it helpful?

Solution

javax.persistence.EntityExistsException is what you will usually get from a JPA provider if you try to save something that as a duplicate key.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top