Learn how to apply retry logic to CompletableFuture objects.
I'm Emanuel Trandafir, a passionate Java developer eager to explore and share insights on diverse programming paradigms, tools, and practices. I actively encourage my readers to join me in meaningful discussions, allowing us to learn from each other's perspectives. Beyond work, I love staying active through sports, hiking, and traveling, and I've recently switched from long-distance running to the thrill of rock climbing.
Here's what I've written (so far):
Baeldung on Java
- Testing (4)
- Spring Data (3)
- Persistence (3)
- Java Concurrency (3)
- Spring Web (2)
- Reactive (2)
- Programming (2)
- Java Streams (2)
- Java (2)
- Web Services (1)
- Java Dates (1)
- Java Collections (1)
- Docker (1)
- Architecture (1)
Learn how to reuse Testcontainers when setting up the environment for local development and testing.
Explore various ways of partitioning a Stream in Java.
Learn about the enhanced Testcontainers support introduced in Spring Boot 3.1.
Explore CompletableFuture.allOf() method and the differences between it and calling join() on multiple separate CompletableFuture instances.
Learn about Java’s CompletableFuture and the thread pool it leverages.
A quick and practical guide to cognitive complexity.
Learn about the @NaturalId annotation and how to use and implement it in a Spring Boot project.
Explore JUnit5’s new @Timeout annotation.
Discover the differences between the fluent interface design pattern and the builder pattern.
Explore the differences between anemic and rich domain models in Java.
Learn about JUnit 5’s @Nested annotation.
Learn various ways of extracting the request headers for a Spring application.
Learn two popular ways of creating a Single object in RxJava.
Explore the usage of Java Generics when it comes to producing and consuming collections.
Explore various ways of accessing the first element of a Flux.
Learn about various listeners’ options of the Mono object from Spring 5 WebFlux.
Learn various ways of iterating through large data sets retrieved with Spring Data JPA.
Learn how to use Postman to test an endpoint secured with Basic Authentication.
Let’s compare different ways of filtering Java Streams.
Learn the differences and similarities between Java 14 Records and Lombok.
Explanation about detached entities, why occurs the”Detached Entity Passed to Persist” error occurs and how to prevent it.
Learn how to group multiple constraints under a single, custom annotation to reduce code duplication and improve readability
Learn how to use JPA Specifications to query a table based on one of its associated entities.
Learn about Hibernate’s PropertyValueException. In particular, the “not-null property references a null or transient value” error message.
A quick and practical guide to distinct queries in HQL.
Explore several ways to subtract days from a date object.