Spring Data 2025.1.0-M2 released

Releases | Mark Paluch | April 22, 2025 | ...

On behalf of the team and everyone who has contributed, I am pleased to announce a new milestone for the next Spring Data generation. The second milestone continues delivering new features and refinement mostly around infrastructure themes.

JSpecify

Spring Data is gradually migrating from Spring's Nullability annotations to JSpecify. The following projects are equipped with JSpecify annotations:

  • Commons
  • JPA
  • MongoDB
  • LDAP
  • Cassandra
  • KeyValue
  • Elasticsearch

Other modules will follow suit.

JPA Refinements

Apart from JSpecify, Spring Data JPA ships with a few refinements around the QueryEnhancer and sorting using Specifications.

You can now configure a QueryEnhancerSelector through @EnableJpaRepositories to select which QueryEnhancerFactory (parser and rewrite utility for JPQL and native queries) to use instead of relying on our defaulting and auto-detection of JSqlParser.

With that change, the previously used spring.data.jpa.query.native.parser flag in spring.properties has been removed.

A selected set of expressions can now be used with JpaSort.unsafe(…) together with Specifications. The newly introduced parser for ORDER BY expressions translates ORDER BY items to JPA's Criteria API Expressions as much as possible. ORDER BY parsing can translate simple path expressions, function calls and CASE clauses. Any more complex ordering items (TREAT, CAST, nested queries) should be provided directly to CriteriaQuery.

Please see the release notes for more details and upgrade instructions.

Thanks to all those who have contributed with issue reports and pull requests.

2025.1.0-M2

Get the Spring newsletter

Stay connected with the Spring newsletter

Subscribe

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all