Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-31791

Upgrade to hibernate 5

    XMLWordPrintable

    Details

    • Release Notes Summary:
      Hibernate is upgraded to version 5.6.15.Final
    • Backlog priority:
      900
    • Upgrade notes:
      Hide

      Maven dependencies

      Upgrade:

      • org.hibernate:hibernate-core from 3.3.2.GA to 5.6.15.Final
      • javax.persistence:persistence-api:1.0.2 to javax.persistence:javax.persistence-api:2.2

      Remove:

      • org.hibernate:hibernate-annotations
      • org.hibernate:hibernate-entitymanager
      • org.hibernate:hibernate-commons-annotations
      • org.hibernate:hibernate-validator
      • org.javassist:javassist, only used for Hibernate < 5.6, moved to JSF UI as needed by JBoss Seam

      Java code

      Remove:

      • HibernateConfiguration#annotedClasses
      • HibernateConfiguration#addAnnotedClass(Class<?> annotedClass)
      • HibernateConfiguration#removeAnnotedClass(Class<?> annotedClass)
      • HibernateConfiguration#cfg
      • HibernateConfiguration#setupConfiguration()
      • HibernateConfiguration#createEntityManagerFactory(final Map<String, String> properties)
      • HibernateConfiguration#NuxeoTransactionManagerLookup
      • NuxeoConnectionProvider#getConnection()
      • NuxeoConnectionProvider#closeConnection(Connection connection)
      • NuxeoConnectionProvider#close()
      • PersistenceComponent#registerOracle12DialectResolver()

      Add:

      • HibernateConfiguration#NuxeoJtaPlatform

      Update:

      • HibernateConfiguration#hibernateProperties from Properties to HashMap
      • NuxeoConnectionProvider from implements ConnectionProvider to extends DatasourceConnectionProviderImpl
      • NuxeoConnectionProvider#configure from (Properties props) to (Map props)
      • PersistenceComponent#doPatchForTests from (Properties hibernateProperties) to (Map<String, String> hibernateProperties)

      Extension Point

      The classes/class list has been removed from the "hibernateConfiguration" contribution to the following extension point:

      <extension target="org.nuxeo.ecm.core.persistence.PersistenceComponent"
        point="hibernate">
        <hibernateConfiguration name="...">
          ...
        </hibernateConfiguration>
      </extension>
      

      Hibernate Release Notes

      4.0.0.Final

      https://in.relation.to/2011/12/15/hibernate-core-40-is-final/
      https://github.com/hibernate/hibernate-orm/blob/4.3/changelog.txt

      5.6.15

      https://in.relation.to/2023/02/06/hibernate-orm-5615-final/
      https://in.relation.to/2015/08/20/hibernate-orm-500-final-release/ (5.0.0.Final)
      https://github.com/hibernate/hibernate-orm/blob/5.6/changelog.txt
      https://hibernate.org/orm/releases/5.6/

      Show
      Maven dependencies Upgrade: org.hibernate:hibernate-core from 3.3.2.GA to 5.6.15.Final javax.persistence:persistence-api:1.0.2 to javax.persistence:javax.persistence-api:2.2 Remove: org.hibernate:hibernate-annotations org.hibernate:hibernate-entitymanager org.hibernate:hibernate-commons-annotations org.hibernate:hibernate-validator org.javassist:javassist, only used for Hibernate < 5.6, moved to JSF UI as needed by JBoss Seam Java code Remove: HibernateConfiguration#annotedClasses HibernateConfiguration#addAnnotedClass(Class<?> annotedClass) HibernateConfiguration#removeAnnotedClass(Class<?> annotedClass) HibernateConfiguration#cfg HibernateConfiguration#setupConfiguration() HibernateConfiguration#createEntityManagerFactory(final Map<String, String> properties) HibernateConfiguration#NuxeoTransactionManagerLookup NuxeoConnectionProvider#getConnection() NuxeoConnectionProvider#closeConnection(Connection connection) NuxeoConnectionProvider#close() PersistenceComponent#registerOracle12DialectResolver() Add: HibernateConfiguration#NuxeoJtaPlatform Update: HibernateConfiguration#hibernateProperties from Properties to HashMap NuxeoConnectionProvider from implements ConnectionProvider to extends DatasourceConnectionProviderImpl NuxeoConnectionProvider#configure from (Properties props) to (Map props) PersistenceComponent#doPatchForTests from (Properties hibernateProperties) to (Map<String, String> hibernateProperties) Extension Point The classes/class list has been removed from the "hibernateConfiguration" contribution to the following extension point: <extension target= "org.nuxeo.ecm.core.persistence.PersistenceComponent" point= "hibernate" > <hibernateConfiguration name= "..." > ... </hibernateConfiguration> </extension> Hibernate Release Notes 4.0.0.Final https://in.relation.to/2011/12/15/hibernate-core-40-is-final/ https://github.com/hibernate/hibernate-orm/blob/4.3/changelog.txt 5.6.15 https://in.relation.to/2023/02/06/hibernate-orm-5615-final/ https://in.relation.to/2015/08/20/hibernate-orm-500-final-release/ (5.0.0.Final) https://github.com/hibernate/hibernate-orm/blob/5.6/changelog.txt https://hibernate.org/orm/releases/5.6/
    • Sprint:
      nxplatform #88, nxplatform #89
    • Story Points:
      5

      Description

      Client requests hibernate library upgraded to 5.4.24 or higher. This is a dependency of nuxeo-core-persistence and nuxeo-platform-audit-core

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: