Skip to content

Isolation support for JPA with Hibernate EntityManager 4 [SPR-11942] #16559

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

1 votes, 6 watchers

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions