How to map JSONPath expressions in Java

JSONPath is a powerful tool for querying JSON data, similar to XPath for XML. Combining JSONPath with Jackson, a popular Java library for JSON processing, allows for advanced mapping of JSON structures to Java objects. This tutorial demonstrates how to map JSONPath expressions using Jackson and Jayway JsonPath.

Read more

Hibernate 7 Tutorial: Top new features

Hibernate 7 is the latest iteration of one of the most popular Object-Relational Mapping (ORM) frameworks for Java, and it brings a suite of powerful enhancements that make it a must-know tool for modern developers. This tutorial dives into the core features of Hibernate 7, explaining how it builds on its strong foundation to enhance type safety, developer productivity, and persistence layer integration.

Read more

Categories jpa

Hibernate example using JBang

This tutorial demonstrates how to use Hibernate with JBang to execute a sample program that interacts with a database. JBang allows us to run Java programs directly from a script without the need for a full project setup. This means no Maven or Gradle configuration—just a single file with dependencies declared inline.

Read more

Categories jpa

Jakarta Data in Action

Managing data is one of the most challenging aspects of building software. The Jakarta API, specifically Jakarta Data, offers a straightforward way for Java developers to handle data access without getting bogged down in the technical details of persistence. Its goal is simple: let you focus on your application’s data model while it takes care of the complexity.

Read more

How to use Swagger UI in Quarkus

Documentation is a critical part of building APIs, as it helps developers and users understand and interact with your endpoints effectively. Swagger UI is a powerful tool that simplifies this process. In this article, we’ll explore how you can integrate and customize Swagger UI in a Quarkus application with minimal effort.

Read more

Connecting to Redis from a Jakarta EE application

In this tutorial, we’ll learn how to integrate Redis into a Jakarta EE application using the Lettuce client library. Redis is a powerful in-memory data structure store, often used as a cache, message broker, or database. Lettuce is a popular Java client for Redis, providing both synchronous and asynchronous capabilities. We will use a simple REST service to interact with Redis, demonstrating how to add and retrieve data from a Redis hash.

Read more

Using the Expansion Operator with WildFly CLI

WildFly CLI (Command Line Interface) allows you to manage and configure WildFly application server instances. One of its powerful features is expansion expressions, which enable you to work with multiple resources efficiently. In this tutorial we will learn how to perform multiple operation commands using the expansion operator (*) when possible and by iterating over WildFly resources.

Read more

Categories CLI

Swagger with Jakarta REST quickstart

This tutorial will guide you through the process of integrating Swagger UI into your Jakarta EE project. We will cover the necessary steps to configure Swagger in a Jakarta EE environment, enabling you to automatically generate and serve API documentation for your RESTful services.

Read more