Kazuki Shimizu opened SPR-11669 and commented
Environment
- JAP( Hibernate 4.2.3.Final )
- Spring Data JPA 1.4.3.RELEASE
- H2 Database 1.3.172 (In memory mode)
- Java 1.7.0_51
- Tomcat 7.0.47
DataIntegrityViolationException is occurred when violate a primary key or unique key constraint.
This behavior is specification ?
I think that should be thrown DuplicateKeyException.
When using JDBC(Mybatis3), occurred a DuplicateKeyException.
How do think?
Affects: 3.2.8
Issue Links:
Referenced from: commits spring-attic/spring-framework-issues@9a6d454, spring-attic/spring-framework-issues@d50e4b8
2 votes, 9 watchers