close

Jens Schauder

Jens Schauder

Spring Data team member

Brunswick, Germany

Blog Posts by Jens Schauder

Spring Data 2021.0.7 and 2020.0.15 released

On behalf of the team, I’m pleased to announce the availability of the Spring Data 2021.0.7 and 2020.0.15 service releases.

Both releases are built on top of Spring Framework 5.3.13. For your convenience, you can consume Spring Data 2021.0.7 and 2020.0.15 through the upcoming Spring Boot releases, 2.5.7 and 2.4.13, respectively.

2020.0.x reached its end of life and will no longer be part of regular OSS releases. If you are still on this version, please consider upgrading at your earliest convenience.

Read more...

Spring Data 2021.1.0 goes GA

On behalf of the team, I’m pleased to announce the availability of the Spring Data 2021.1.0.

These are the most important changes:

  • Upgrade to Querydsl 5.0
  • Support jMolecules’ @Identity Annotation for Identifiers
  • Fluent Query API for Querydsl and Query-by-Example
  • Deprecated RxJava 2 Support
  • MongoDB @DocumentReference, schema derivation for encrypted fields, and MongoDB 5.0 Time Series support
  • Redis 6.2 support
  • Support for streaming large result sets in Spring Data JDBC, Projections, and SQL Builder refinements around conditions, JOINs, and SELECT projections
  • Support for Impersonation and support for Querydsl in Neo4j
Read more...

Spring Data JDBC - How do I implement caching?

This is the third article of a series about how to tackle various challenges you might encounter when using Spring Data JDBC.

The series consists of

If you are new to Spring Data JDBC, you should start by reading its introduction and this article, which explains the relevance of aggregates in the context of Spring Data JDBC. Trust me, it is important.

Read more...

Spring Data JDBC - How do I make Bidirectional Relationships?

This is the second article of a series about how to tackle various challenges you might encounter when using Spring Data JDBC. The series consists of

  1. Spring Data JDBC - How to use custom ID generation.

  2. Spring Data JDBC - How do I make bidirectional relationships? (this article). 3 Spring Data JDBC - How do I implement caching?

If you are new to Spring Data JDBC, you should start by reading its introduction and this article, which explains the relevance of aggregates in the context of Spring Data JDBC. Trust me, it is important.

Read more...

Spring Data JDBC - How to use custom ID generation

This is the first article of a series about how to tackle various challenges you might encounter when using Spring Data JDBC. The series consists of

  1. Spring Data JDBC - How to use custom ID generation. (this article).

  2. Spring Data JDBC - How do I make bidirectional relationships? 3 Spring Data JDBC - How do I implement caching?

If you are new to Spring Data JDBC, you should start by reading its introduction and this article, which explains the relevance of aggregates in the context of Spring Data JDBC. Trust me, it is important.

Read more...

Spring Data 2021.1.0-M2 released

On behalf of the team, I’m pleased to announce the availability of the Spring Data 2021.1.0-M2 milestone release.

The release is built on top of Spring Framework 5.3.9.
For your convenience, you can consume this release through Spring Boot 2.6.0-M2, which our team mates on the Boot team will release in about a week.

To round things off, here are the links to the artifacts, changelogs, and documentation:

Read more...

Spring Data 2021.0.4 and 2020.0.12 released

On behalf of the team, I’m pleased to announce the availability of the Spring Data2021.0.4 and 2020.0.12 service releases.

Both releases are built on top of Spring Framework 5.3.9. For your convenience, you can consume these releases through Spring Boot 2.5.4 and 2.4.10, respectively. Our teammates on the Boot team will release those in about a week.

The service releases ship with mostly bug fixes and dependency upgrades.

To round things off, here are the links to the artifacts, changelogs, and documentation:

Read more...

Spring Data 2021.0.3 and 2020.0.11 released

On behalf of the team, I’m pleased to announce the availability of the Spring Data2021.0.2 and 2020.0.10 service releases.

Both releases are built on top of Spring Framework 5.3.9. For your convenience, you can consume these releases through Spring Boot 2.5.3 and 2.4.9, respectively. Our teammates on the Boot team will release those in about a week.

The service releases ship with mostly bug fixes and dependency upgrades.

To round things off, here are the links to the artifacts, changelogs, and documentation:

Read more...

Spring Data 2021.1.0-M1 released

On behalf of the team, I’m pleased to announce the availability of the Spring Data 2021.1.0-M1 milestone release.

The release is built on top of Spring Framework 5.3.9. For your convenience, you can consume this release through Spring Boot 2.6.0-M1, which our team mates on the Boot team will release in about a week.

The 2021.1 release train ships a set of features and dependency upgrades.
The most important changes are:

  • Upgrade to Querydsl 5.
  • Support for a wide range of Redis 6.2 commands.
  • Support for dialect-dependent custom conversions in Spring Data JDBC. This was used to improve the support of java.time types across multiple databases.
  • Support for streaming large result sets in Spring Data JDBC.
  • Support for AggregateReference in query derivation.
  • REF_CURSOR support for stored procedures in Spring Data JPA.
  • Upgrade to MongoDB Driver 4.3 and initial support for MongoDB Server 5.0 Time Series.
  • Spring Data MongoDB comes with extended capabilities for linking documents and offers, next to the existing DBRef approach, a property-based solution that uses simple values, such as the target _id or a combination of fields to link to another document.
    The sample below shows the reference to a collection of Account documents through their _id in Java code and how it is represented in MongoDB:

    @Document
    class Person {
      @Id
      String id;
      @DocumentReference
      List<Account> accounts;
    }
    
    {
      "_id" : …,
      "accounts" : [ "6509b9e" … ]
    }
    
Read more...

Spring Data 2020.0 - New and Noteworthy in Spring Data JDBC 2.1

As part of the 2020.0.0 version of Spring Data, we released Spring Data JDBC 2.1. This article presents the four most interesting changes in this version.

Use @Value on Entity Constructor Arguments

In some cases, not all the data that goes into an entity comes from the ResultSet of a query. You now may provide an @Value annotation with a SPeL expression that is evaluated, and the result is passed as an argument upon construction of the entity.

Read more...