Skip to content

Support for Hibernate ORM 6.0/6.1 [SPR-17596] #22128

New issue

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

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

Already on GitHub? # to your account

Closed
spring-projects-issues opened this issue Dec 12, 2018 · 3 comments
Closed

Support for Hibernate ORM 6.0/6.1 [SPR-17596] #22128

spring-projects-issues opened this issue Dec 12, 2018 · 3 comments
Assignees
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Dec 12, 2018

Juergen Hoeller opened SPR-17596 and commented

Hibernate ORM 6.0 alpha 1 was recently released (in December 2018). Let's introduce a org.springframework.orm.hibernate6 support package in the Spring Framework 5.2 timeframe, in parallel to our existing Hibernate ORM 5.x support.


Issue Links:

@spring-projects-issues spring-projects-issues added in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 5.2 RC1 milestone Jan 11, 2019
@jhoeller jhoeller modified the milestones: 5.2 RC1, 5.x Backlog Jan 28, 2019
@jhoeller
Copy link
Contributor

jhoeller commented Jan 28, 2019

At this point, it looks like Hibernate ORM 6.0 won't be final in time for our 5.2 GA timeframe in June. While we're going to make sure that Spring's JPA support works fine against Hibernate ORM 6.0 pre-releases, a dedicated org.springframework.orm.hibernate6 package is probably better off in our next feature release.

@jhoeller
Copy link
Contributor

On review, HibernateTemplate does not seem feasible to sustain anymore against Hibernate 6.0 since plenty of underlying API has changed or even been removed. We meant to phase out HibernateTemplate before, so this seems to be the definitive time for it. We can keep the Hibernate 5.x variant of HibernateTemplate around but won't introduce a dedicated 6.0 variant.

For all common purposes, our JPA support seems to be compatible with Hibernate 6.0 since #28007. From that perspective, there isn't much need for dedicated support for native Hibernate APIs from Spring's side. That said, let's keep this general support ticket open for the time being, to be revisited towards Spring Framework 6.0 GA for a final decision.

@jhoeller jhoeller modified the milestones: 6.0.0-M4, 6.0.x May 10, 2022
@jhoeller jhoeller changed the title Support for Hibernate ORM 6.0 [SPR-17596] Support for Hibernate ORM 6.0/6.1 [SPR-17596] Nov 21, 2022
@jhoeller jhoeller modified the milestones: 6.0.x, 6.0.0-RC1 Nov 21, 2022
@jhoeller jhoeller removed the type: dependency-upgrade A dependency upgrade label Nov 21, 2022
@jhoeller
Copy link
Contributor

This is considered complete as of Spring Framework 6.0 RC1, as per the description above: support for Hibernate ORM 6.0/6.1 in a JPA setup, with org.springframework.orm.hibernate5 remaining in place for native Hibernate based code for the time being. Support for Hibernate 5.x is limited to Hibernate ORM 5.6.x with JPA as well as the native Hibernate API.

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

No branches or pull requests

2 participants