1. Spring and Java

>> Model Data, the Whole Data, and Nothing but the Data – Data Oriented Programming v1.1 [inside.java]

An interesting look at how we can use Records and Sealed types to model aggregates and interfaces to express different alternatives for those models.

>> JEP 477 Enhances Beginner Experience with Implicitly Declared Classes and Instance Main Methods and the JEP (Third Preview) [infoq.com] [openjdk.org]

No need to declare a proper public static main inside a class anymore.

>> Implement your primary key as a Record using an IdClass [thorben-janssen.com]

IdClass to represent compound primary keys: now it’s possible to use Java records elegantly and concisely. Good stuff.

Also worth reading:

Webinars and presentations:

Time to upgrade:

2. Technical & Musings

>> Data Fetching Patterns in Single-Page Applications [martinfowler.com]

Optimizing data fetching in Single Page Applications: strategies and best practices!

>> PostgreSQL COPY result set to file [vladmihalcea.com]

Using the PostgreSQL COPY command to export a large result set to an external file.

Also worth reading:

3. Pick of the Week

>> Extreme brainstorming questions to trigger new, better ideas [asmartbear.com]

Next »
Java Weekly, Issue 545
« Previous
Java Weekly, Issue 543
Baeldung Pro – NPI EA (cat = Baeldung)
announcement - icon

Baeldung Pro comes with both absolutely No-Ads as well as finally with Dark Mode, for a clean learning experience:

>> Explore a clean Baeldung

Once the early-adopter seats are all used, the price will go up and stay at $33/year.

eBook – HTTP Client – NPI EA (cat=HTTP Client-Side)
announcement - icon

The Apache HTTP Client is a very robust library, suitable for both simple and advanced use cases when testing HTTP endpoints. Check out our guide covering basic request and response handling, as well as security, cookies, timeouts, and more:

>> Download the eBook

eBook – Java Concurrency – NPI EA (cat=Java Concurrency)
announcement - icon

Handling concurrency in an application can be a tricky process with many potential pitfalls. A solid grasp of the fundamentals will go a long way to help minimize these issues.

Get started with understanding multi-threaded applications with our Java Concurrency guide:

>> Download the eBook

eBook – Java Streams – NPI EA (cat=Java Streams)
announcement - icon

Since its introduction in Java 8, the Stream API has become a staple of Java development. The basic operations like iterating, filtering, mapping sequences of elements are deceptively simple to use.

But these can also be overused and fall into some common pitfalls.

To get a better understanding on how Streams work and how to combine them with other language features, check out our guide to Java Streams:

>> Join Pro and download the eBook

Course – LS – NPI EA (cat=REST)

announcement - icon

Get started with Spring Boot and with core Spring, through the Learn Spring course:

>> CHECK OUT THE COURSE

Partner – Moderne – NPI EA (tag=Refactoring)
announcement - icon

Modern Java teams move fast — but codebases don’t always keep up. Frameworks change, dependencies drift, and tech debt builds until it starts to drag on delivery. OpenRewrite was built to fix that: an open-source refactoring engine that automates repetitive code changes while keeping developer intent intact.

The monthly training series, led by the creators and maintainers of OpenRewrite at Moderne, walks through real-world migrations and modernization patterns. Whether you’re new to recipes or ready to write your own, you’ll learn practical ways to refactor safely and at scale.

If you’ve ever wished refactoring felt as natural — and as fast — as writing code, this is a good place to start.