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.
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.
Choosing the Strategy for Primary keys in JPA
In JPA terms, the @Id annotation indicates the identifier of the entity maps the primary key of a Database Table. In this article we will learn how to choose the optimal strategy for primary key generation.