views:

28

answers:

1

Hi.

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

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

Thank you.

+2  A: 

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

Affe