Uploaded image for project: 'Corda'
  1. CORDA-2804

Upgrade Corda Core to use Java Persistence API 2.2

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects versions: Corda 4
    • Fix versions: Corda 4.1
    • Components: None
    • Labels:
      None

      Description

      When we upgraded Hibernate from 5.2.6 to 5.3.6, we also implicitly upgraded Corda to use JPA 2.2.

      corda-core has an explicit dependency on:

      // JPA 2.1 annotations.
      compile "org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.0.Final"
      

      but it now also has a transitive dependency on:

      compile "javax.persistence:javax.persistence-api:2.2"
      

      These two jars contain nominally the same classes, but Hibernate is expecting the JPA 2.2 jar. This means that the former JPA 2.1 jar should be removed.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                chris.rankin Chris Rankin
                Reporter:
                chris.rankin Chris Rankin
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: