Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-10520

Add Hibernate ORM 5.3 compatibility transformer

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 14.0.0.Beta2
    • None
    • JPA / Hibernate
    • None

      A compatibility transformer needs to be added to address Hibernate ORM 5.3 API methods that are no longer compatible with 5.1.

      From https://docs.google.com/document/d/1cAVBdeQXQfpTwH0f_GKSahh_gRd7bKI6kII-wxoMglU

      1. Change calls to org.hibernate.BasicQueryContract.getFlushMode(), to instead call BasicQueryContract.getHibernateFlushMode().
      2. Change calls to org.hibernate.Session.getFlushMode, to instead call Session.getHibernateFlushMode()
      3. Change references to Enum org.hibernate.FlushMode.NEVER (0), to FlushMode.MANUAL (0).
      4. Change calls to org.hibernate.Query.getMaxResults() returning Integer, to instead call org.hibernate.Query.getHibernateMaxResults() (returning Integer).
      5. Change calls to org.hibernate.Query.setMaxResults(int), to instead call org.hibernate.Query.setHibernateMaxResults(int).
      6. Change calls to org.hibernate.Query.getFirstResult(int) returning Integer, to instead call org.hibernate.Query.getHibernateFirstResult() (returning Integer).
      7. Change calls to org.hibernate.Query.setFirstResult(int), to instead call org.hibernate.Query.setHibernateFirstResult(int).
      8. Also deal with Hibernate user defined types.

            smarlow1@redhat.com Scott Marlow
            gbadner@redhat.com Gail Badner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: