Skip to content

Upgrade to JPA 2.1+ and Bean Validation 1.1+ [SPR-13481] #18060

Closed

Description

@spring-projects-issues

Juergen Hoeller opened SPR-13481 and commented

By the time of Spring Framework 5.0 GA, JPA 2.1 and Bean Validation 1.1 will be almost four years old already. Since we tend to avoid compatibility compromises for Spring 5 now, let's enforce JPA 2.1 and Bean Validation 1.1 as a baseline. This includes upgrading the system requirements to Hibernate ORM 5.0+, Hibernate Validator 5.0+, EclipseLink 2.5+, and hopefully also to a yet-to-appear OpenJPA revision (otherwise we'd have to drop OpenJPA support if it remains stuck with JPA 2.0).


Issue Links:

Activity

  1. spring-projects-issues commented on Dec 18, 2015

    @spring-projects-issues
    CollaboratorAuthor

    Alex commented

    I report here a comment I put an a closed ticket: the hibernate team has already deprecated hibernate 4.x: http://in.relation.to/2015/10/27/great-jira-cleanup-2015/

    "Now that ORM 5.0 has gone final, we need to focus our development efforts on 5.0 and beyond.
    http://github.com/hibernate/hibernate-orm/wiki/Huge-Project,-Small-Team discusses why we do this.
    Put simply, versions prior to 5.x are no longer maintained and bug reports which do not affect 5.0 are outside that focus."
    

    So with Spring 5 I suppose you should use Hibernate 5.x as a baseline.

  2. spring-projects-issues commented on Dec 18, 2015

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    Point taken, we should take that as a hard reason for going Hibernate 5.0+ in Spring 5.0. The JPA 2.1+ baseline implies Hibernate 4.3+ anyway, so this is an easy jump to make in early 2017... when the Hibernate team will have left 4.x in "unmaintained" state for 1.5 years already.

    See #18400 for the dedicated Hibernate step to take there.

    Juergen

  3. spring-projects-issues commented on Jul 4, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    Addressed along with #18400, with Hibernate ORM 5.2 and Hibernate Validator 5.2 being used by default in spring-orm and spring-context now, respectively.

  4. 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

type: task

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions