close

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

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.

Read more...

Announcing ListCrudRepository & Friends for Spring Data 3.0

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:

Read more...

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

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:

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

Read more...

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

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

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