Jens Schauder

Jens Schauder

Spring Data team member | Brunswick, Germany

Blog posts by Jens Schauder

How to integrate Hibernates Multitenant feature with Spring Data JPA in a Spring Boot application

Engineering | July 31, 2022 | ...

For quite some time now, Hibernate has offered a Multitenant feature. It integrates nicely with Spring, but there is not much information about how to actually set it up, so I thought an example or two or three could help.

There is already an excellent blog article, but it is a little dated and it covers a lot of specifics to the business problems the author tried to solve. This approach hides a little of the actual integration, which will be the focus of this article.

Do not worry about the code in this post. You can find links to the full code examples at the end of this blog post.

What Does…

Announcing ListCrudRepository & Friends for Spring Data 3.0

Engineering | February 22, 2022 | ...

The Spring Data CrudRepository has various methods that return multiple instances of the entity managed by the repository. It does so by using Iterable and not List, as one might expect. In many cases, that is of no consequence, since you typically want to iterate over the result anyway. However, you might occasionally prefer a List. In these cases, Iterable is annoying.

I will write more about why that choice was made in the first place and how you can deal with it as long as you are on Spring Data 2.x. However, let me get the good news out first:

Repositories returning Lists

Spring Data 3.0.0 now offers a ListCrudRepository in the latest snapshot releases, which returns a List where CrudRepository returns an Iterable

Spring Data JDBC - How Can I Do a Partial Update of an Aggregate Root?

Engineering | January 20, 2022 | ...

This is the fourth 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?

  3. Spring Data JDBC - How Do I Implement Caching?

  4. Spring Data JDBC - How Can I Do a Partial Update of an Aggregate Root? (this article)

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

Spring Data 2021.1.0 goes GA

Releases | November 12, 2021 | ...

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

Spring Data 2021.0.7 and 2020.0.15 released

Releases | November 12, 2021 | ...

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.

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

To round things off…

Spring Data JDBC - How do I implement caching?

Engineering | October 18, 2021 | ...

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

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

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

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

  4. Spring Data JDBC - How Can I Do a Partial Update of an Aggregate Root?

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…

Spring Data JDBC - How do I make Bidirectional Relationships?

Engineering | September 22, 2021 | ...

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?

  4. Spring Data JDBC - How Can I Do a Partial Update of an Aggregate Root?

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…

Spring Data JDBC - How to use custom ID generation

Engineering | September 09, 2021 | ...

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?

  4. Spring Data JDBC - How Can I Do a Partial Update of an Aggregate Root?

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…

Spring Data 2021.1.0-M2 released

Releases | August 12, 2021 | ...

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:

Spring Data 2021.0.4 and 2020.0.12 released

Releases | August 12, 2021 | ...

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:

2021.0.4

Get ahead

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

Learn more

Get support

Spring Runtime 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