Description
Manuel Jordan opened SPR-11942 and commented
I am doing a research about Spring Framework and explicitly with @Transactional
, it working together with JdbcTemplate, Hibernate, JPA, and finally with Spring Data - JPA. A project for each one of course.
I have a huge problem, the projects based with JPA and Spring Data JPA, do not work in a 100% with @Transanctional
through Isolations: the following error message appears:
"Standard JPA does not support custom isolation levels - use a special JpaDialect for your JPA implementation"
I know it is a problem by itself of JPA. I did a research in Google and practically all have the same solution, create a customized class to around this problem.
I think Spring Framework should has available an own implementation functional and tested for the community. Isolations are very important.
If I am hired to do a migration from any Spring Project where it works with Jdbc/Hibernate, I am not able to migrate to Spring Data JPA. Because I am totally sure the services for complex use cases are working with Isolations, for example Serializable, for example for Kardex/Warehouse stock control and same consideration about cash, it closely related in the scenario for many users/threads (cashier) in a Mall.
Would be possible see Isolation support for Spring Framework: 4.1.x or 4.6.x?.
Thank You
Affects: 4.0.5
Issue Links:
- How to implement Pessimistic Locking with JPA [SPR-3812] #8492 How to implement Pessimistic Locking with JPA
- HibernateJpaDialect does not support setting a specific isolation level per transaction [SPR-5012] #9687 HibernateJpaDialect does not support setting a specific isolation level per transaction
- readOnly transaction doesn't work with JPA and Hibernate 4 [SPR-8959] #13599 readOnly transaction doesn't work with JPA and Hibernate 4
- Misleading exception message for using JPA with custom IsolationLevels [SPR-8325] #12974 Misleading exception message for using JPA with custom IsolationLevels
- HibernateJpaDialect should warn about connection release mode other than ON_CLOSE (when upgrading from 4.0.x) [SPR-13269] #17860 HibernateJpaDialect should warn about connection release mode other than ON_CLOSE (when upgrading from 4.0.x)
- EclipseLinkJpaDialect does not support declarative transaction isolation [SPR-12319] #16924 EclipseLinkJpaDialect does not support declarative transaction isolation
- OpenJpaDialect does not support declarative transaction isolation [SPR-12333] #16938 OpenJpaDialect does not support declarative transaction isolation
1 votes, 6 watchers