Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Hibernate 5.2 [SPR-14334] #18906

Closed
spring-projects-issues opened this issue Jun 6, 2016 · 3 comments
Closed

Add support for Hibernate 5.2 [SPR-14334] #18906

spring-projects-issues opened this issue Jun 6, 2016 · 3 comments
Assignees
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) status: duplicate A duplicate of another issue type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jun 6, 2016

Mohsen Kashi opened SPR-14334 and commented

By changing the Transaction management in Hibernate 5.2 Spring project stops working with Hibernate 5.2. for detail see this StackOverflow question:

http://stackoverflow.com/questions/37651837/integrate-hibernate-5-2-with-spring


Affects: 4.2.6

Reference URL: http://stackoverflow.com/questions/37651837/integrate-hibernate-5-2-with-spring

Issue Links:

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Jun 6, 2016

Juergen Hoeller commented

This has been addressed in #18899 already, for release in 4.3 GA this week. Unfortunately Hibernate all of a sudden broke an API which has been stable for more than ten years, without any milestones or release candidates or other advance warnings, so it was a surprise to us as well.

For use with Spring Framework 4.2.x, we recommend Hibernate ORM up until 5.1. You'll have to upgrade to Spring Framework 4.3 in order to pick up Hibernate ORM 5.2 (which is a pretty major upgrade anyway, not just in terms of integration with Spring).

@spring-projects-issues
Copy link
Collaborator Author

jyoti commented

I have upgraded spring framework to 4.3 and using hibernate 5.2 but I am facing issues.Like : Initialization of bean failed; nested exception is java.lang.UnsupportedClassVersionError: org/hibernate/HibernateException : Unsupported major.minor version 52.0

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

This simply indicates that Hibernate 5.2 requires JDK 8 now, and you're probably running on JDK 7...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants