简体   繁体   中英

DuplicateKeyException alternative for javax.persistence

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

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

Thank you.

如果尝试将某些内容保存为重复键,则通常会从JPA提供程序获得javax.persistence.EntityExistsException。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM