Combining JPA And/Or Criteria Predicates 1. Overview The JPA Criteria API can be used to easily add multiple AND/OR conditions when querying records in a database. In this tutorial, we’ll explore a quick example of JPA criteria queries that combine multiple AND/OR predicates. If you’re not familiar with predicates, we… Continue Reading jpa-and-or-criteria-predicates

Generate Spring Boot REST Client with Swagger 1. Introduction In this article, we’ll use the Swagger CodeGen project to generate a REST client from an OpenAPI/Swagger spec file. Also, we’ll create a Spring Boot project, where we’ll use generated classes. We’ll use the Swagger Petstore API example for everything. 2.… Continue Reading spring-boot-rest-client-swagger-codegen

Ratpack with Groovy 1. Overview Ratpack is a set of lightweight Java libraries for building scalable HTTP applications with reactive, asynchronous, and non-blocking features. Additionally, Ratpack also provides integration with technologies and frameworks like Google Guice, Spring Boot, RxJava and Hystrix. In this tutorial, we’ll explore how to use Ratpack… Continue Reading ratpack-groovy

Automatic Generation of the Builder Pattern with FreeBuilder [[builder pattern]] === 1. Overview [[builder pattern]]In this tutorial, we’ll use the FreeBuilder library to generate builder classes in Java. [[design patterns]] === 2. Builder Design Pattern [[design patterns]]Builder is one of the most widely used Creation Design Patterns in object-oriented languages.… Continue Reading java-builder-pattern-freebuilder