Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 4.3 GA
    • Component/s: Data:ORM
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Hibernate ORM 5.2 got released just in time for Spring Framework 4.3. Let's do everything we can to support it right away, in particular upgrading our spring-orm-hibernate5 build to 5.2 while retaining compatbility with 5.0 and 5.1.

        Issue Links

          Activity

          Hide
          thekalinga Ashok added a comment -

          Will there be a migration path to hibernate 5.* in spring 4.3?

          Show
          thekalinga Ashok added a comment - Will there be a migration path to hibernate 5.* in spring 4.3?
          Hide
          thekalinga Ashok added a comment -

          Since Andrei Ivanov mentioned that `hibernate-entitymanager-5.2.1` is deprecated (atleast as per its pom), will there be a migration path to hibernate 5.* in spring 4.3?

          Show
          thekalinga Ashok added a comment - Since Andrei Ivanov mentioned that `hibernate-entitymanager-5.2.1` is deprecated (atleast as per its pom), will there be a migration path to hibernate 5.* in spring 4.3?
          Hide
          olivergierke Oliver Gierke added a comment -

          What do you mean with migration path? 5.2 shipped without a hibernate-entitymanager artifact as all code moved into hibernate-core. That made it hard for a lot of third party integrators (like Spring Boot) to consume the new artifacts and at the same time allow users to use old versions of Hibernate. For applications, this usually doesn't apply as there is a dedicated upgrade step. So upgrading your Spring application to Hibernate 5, you effectively need 3 steps:

          1. Upgrade to Spring 4.3.
          2. Change the Hibernate artifact version to 5.2(.1)
          3. Change the artifact identifier of Hibernate to hibernate-core.

          There's nothing in Spring Framework code that needs to be tweaked.

          Show
          olivergierke Oliver Gierke added a comment - What do you mean with migration path? 5.2 shipped without a hibernate-entitymanager artifact as all code moved into hibernate-core . That made it hard for a lot of third party integrators (like Spring Boot) to consume the new artifacts and at the same time allow users to use old versions of Hibernate. For applications, this usually doesn't apply as there is a dedicated upgrade step. So upgrading your Spring application to Hibernate 5, you effectively need 3 steps: 1. Upgrade to Spring 4.3. 2. Change the Hibernate artifact version to 5.2(.1) 3. Change the artifact identifier of Hibernate to hibernate-core . There's nothing in Spring Framework code that needs to be tweaked.
          Hide
          thekalinga Ashok added a comment -

          Thanks for the clarification.

          Earlier, I did not fully grasp what Andrei meant by this statement.
          Indeed, I see the pom of hibernate-entitymanager-5.2.1 mentions it is deprecated, so it's better not to use it.

          Show
          thekalinga Ashok added a comment - Thanks for the clarification. Earlier, I did not fully grasp what Andrei meant by this statement. Indeed, I see the pom of hibernate-entitymanager-5.2.1 mentions it is deprecated, so it's better not to use it.
          Hide
          thekalinga Ashok added a comment -

          Now I get it.

          Show
          thekalinga Ashok added a comment - Now I get it.

            People

            • Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              juergen.hoeller Juergen Hoeller
              Last updater:
              Juergen Hoeller
            • Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 14 weeks, 1 day ago