Skip to content

Drop native OpenJPA support [SPR-14426] #18997

Closed

Description

@spring-projects-issues

Juergen Hoeller opened SPR-14426 and commented

OpenJPA is barely maintained these days and has not caught up with JPA 2.1 in three years (!) ... Even TomEE 7 - as the sole remaining OpenJPA stakeholder - recently went GA without updating OpenJPA either, recommending EclipseLink along the lines of WebSphere 8.5/9.0 instead.

Since the latest OpenJPA 2.4.1 still causes issues in a Java 8 based build, in particular with its Java 6 limited annotation processor, let's remove our dedicated OpenJPA support right away. If it ever gets updated to JPA 2.1 (which is unlikely), it will still work as a standard JPA provider.


Issue Links:

Activity

  1. spring-projects-issues commented on Aug 8, 2018

    @spring-projects-issues
    CollaboratorAuthor

    Maxim Solodovnik commented

    Hello,

     

    OpenJPA 3.0.0 was recently released (JPA 2.1 compatible)
    Would it be possible to get OpenJPA support back?

  2. spring-projects-issues commented on Aug 8, 2018

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    Note that there is a discussion about that at #20584... As per my comment there, I'm inclined to expect a corresponding JpaVendorAdapter to be shipped with OpenJPA itself, or a corresponding extension living in the OpenJPA project at Apache.

    In quite a few areas, we ship two reference integrations out of the box and expect others to provide integration on their end: FreeMarker + Groovy for templating, EhCache + Caffeine for caching, Hibernate and EclipseLink for deep JPA integration. For JPA specifically, there's the additional constraint that all common application servers out there include Hibernate or EclipseLink in the meantime, with even IBM having given up on OpenJPA and shipping EclipseLink instead now.

    Of course, OpenJPA 3.0 should work fine with standard JPA 2.1 integration in Spring, i.e. simply without a JpaVendorAdapter, just like DataNucleus does as well (which we never shipped an adapter for). If anything does not work out of the box there, please raise it in a separate ticket; we'll sort it out ASAP.

  3. spring-projects-issues commented on Aug 8, 2018

    @spring-projects-issues
    CollaboratorAuthor

    Maxim Solodovnik commented

    Everything seems to work,

    Thanks a lot for clarifications!

  4. added
    in: data
    type: task
    on Jan 11, 2019
  5. added this to the 5.0 M1 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: datatype: task

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions