Spring Data JDBC and R2DBC 4.0 will support Composite IDs

Engineering | Jens Schauder | July 22, 2025 | ...

I'm happy to announce, that Spring Data JDBC and R2DBC finally support Composite IDs starting with version 4.0.0-M4.

Most of you probably know, but just to make sure everyone has the same understanding: From the database point of view a composite id (or composite key) is a primary key that consists of more than one column. On the Java side these columns get mapped to an entity with an attribute for each column Usage should be straight forward and I'll demonstrate it in the following article for JDBC. Usage in R2DBC is anlogous.

To get started just put an @Id annotation on a field in your…

This Week in Spring - July 22nd, 2025

Engineering | Josh Long | July 22, 2025 | ...

Hi, Spring fans! It's almost SpringOne time!! AAAAH it's all moving so quickly! I can hardly stand it. SpringOne's next month, in lovely Las Vegas, and I'll be there. Will you? Have you registered?

We'll be looking at the impending Spring Boot 4.0 and Spring Framework 7.0 releases! It's going to be a ton of fun. Indeed, you'll notice that's a theme these days: tons of new projects in the milestones or early days stages of development, making their way down the winding road to GA, in time for Spring Boot 4.0 and Spring Framework 7.0. This is my favorite time: we should all be trying the bits…

This Week in Spring - July 15th, 2025

Engineering | Josh Long | July 15, 2025 | ...

Hi, Spring fans! It's already the 15th of July! We're closer to 2026 than we are to 2024. And time's sure flying. Like I will, tomorrow. I'll be flying to Denver for the amazing UBERCONF software show! I'll be doing a workshop and two talks, and if you're there, I hope you'll come say "hi"!

Let's get into this week's roundup, because it's a doozy!

This Week in Spring - July 8th, 2025

Engineering | Josh Long | July 08, 2025 | ...

Hi, Spring fans! Welcome to another installment of This Week in Spring! I write this having spent a wonderful week in paradise (Bora Bora, French Polynesia, to be precise) with my partner Tam Mie. We were so very sad to have to say goodbye.

But that means I'm officially back at my desk, with nary a manta ray to be found anywhere. Sigh. That's okay, though, as there are a ton of amazing things to read and catch up on - so let's dive into this week's roundup (if not the pearly blue, crystal-clear oceans of the South Pacific)!

This Week in Spring - July 1st, 2025

Engineering | Josh Long | July 01, 2025 | ...

Hi, Spring fans! Welcome to another installment of This Week in Spring! It's July!!

This week, I'm on PTO, and as always, I'm looking for good reading material on the plane ride over for my holiday. Thank goodness for the ever-vibrant and awesome Spring community; there's tons of stuff to dive into!

I may be going on a little holiday, but the next few months are going to be a ton of fun, and I'm looking forward to it. Did you know that SpringOne, in lovely Las Vegas, is just a few months away? Get your tickets now!

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