How to use Cookies to persist HTTP Session data

In this tutorial, we will learn how to save and read the HTTP session state in a cookie using Servlets. By utilizing cookies, we can persist session information on the client-side, allowing us to maintain session state even if the user closes the browser or navigates away from the website. This technique can be beneficial … Read more

How to run Jakarta Batchlets with WildFly

Jakarta Batchlets provide a streamlined approach to handle non-data-oriented processing tasks within batch jobs. Whether you are new to batch processing or familiar with Jakarta Batch, this tutorial will guide you through the essentials of using Jakarta Batchlets effectively. Use Cases for Batchlets vs standard Batch executions Batch processing plays a vital role in modern … Read more

Getting started with Jakarta Bean Validation

This article covers the Jakarta Bean Validation specification which allows you to express constraints on your model and create custom ones in an extensible way. Within it, we will cover the legacy from Jakarta EE Validation and the new features available since Jakarta EE 10.

Read more

Jakarta Persistence 3.1 new features

This tutorial introduces Jakarta Persistence API 3.1 as a standard for management of persistence and O/R mapping in Java environments. We will discuss the headlines with a simple example that you can test on a Jakarta EE 10 runtime. New features added in Jakarta Persistence 3.1 There are several new features available in Jakarta Persistence … Read more

Comparing Jackson vs JSONB

JSON-B and Jackson are both libraries that can be used for parsing and generating JSON data in Java. However, they have some differences in their functionality and usage. This tutorial will discuss them in detail.

Read more

How to solve ViewExpiredException: View could not be restored

The javax.faces.application.ViewExpiredException is a common exception in JavaServer Faces (JSF) applications that occurs when the user’s view state, which is used to maintain the state of components across requests, becomes invalid or expired. This typically happens when a user submits a form or performs an action on a JSF page after the view state has expired on the server.

Read more

How to do a Database dump of H2 DB

Using the H2 Database is a common option when developing application prototypes. Once challenge is that, if you are using it as in-memory embedded H2 database , you cannot access the database from outside the JVM. A simple trick is to create a dump of the database, to check the data in all tables In this tutorial we will learn several ways to do that in a standard JPA application and in a Spring Boot application.

Read more

Categories jpa

Understanding JPA Entity life cycle

This article discusses the life cycle of Entity objects in JPA Applications. Understanding the different stages that an Entity goes through is crucial for proper understanding of the JPA framework.

Read more

Categories jpa