2 Replies Latest reply on Mar 12, 2019 11:35 AM by ctomc

    Wildfly 15 - does this support Hibernate 3.6.x, specifically JPA 2.0

    natarajanram

      Hello,

      We have an application in Jboss5.1 that we are looking to upgrade to Wildfly 15.0. The current application on JBoss 5.1 uses the following version of hibernate tools:

       

      hibernate-core - 3.6.2.Final

      hibernate-ehcache - 3.6.2.Final

      hibernate-commons-annotations - 3.2.0.Final

       

      Hibernate-core-3.6.2 uses JPA 2.0. Though Wildlfy 15 supports JPA 2.2, i did not see anything in the documentation in WIldfly about dropping support for JPA 2.0. Can someone please confirm this?

       

      We are planning to migrate to Wildfly 15 in phases and wanted to see if we can retain the above versions of hibernate tools atleast in phase 1. So wanted to be sure that these tools work in Wildfly 15.

       

      Thanks in advance

      Ram

       

       

                

      hibernate-ehcache3.6.2.Final
      hibernate-core3.6.2.Final
      hibernate-commons-annotations3.2.0.Final
        • 1. Re: Wildfly 15 - does this support Hibernate 3.6.x, specifically JPA 2.0
          nalvargonzalez

          Hi there Ram,

           

          You just need to exclude the current Hibernate dependencies/modules on your upgraded app jboss-deployment-assembly.xml descriptor, and manage the Legacy Hibernate dependencies directly in your app.

           

          I recommend you to use the Windup tool as that one will scan your app and provide with the best paths for upgrade, with many options like keeping the current Hibernate, Upgrade Hibernate and removing Hibernate altogether, just in case you want to stick with plain old JDBC.

           

          Let me know if I can help you with anything else!

          • 2. Re: Wildfly 15 - does this support Hibernate 3.6.x, specifically JPA 2.0
            ctomc

            JPA spec is backward compatible.

            as long as you don't use any implementation specific code / configuration your application should run just fine with latest JPA spec / hibernate version.

             

            in short, you don't need to do anything, especially do not bundle any hibernate dependencies with your deployment if you want to utilize that.