JPA Criteria API

This tutorial will show you how to use JPA(Java Persistence API) Criteria Queries for selecting data from database. The Java Persistence API (JPA) is a Java specification for accessing, persisting, and managing data between Java objects / classes and a relational database. The Criteria API is used to define queries for entities and their persistent […]

Read More

JPA Inheritance Strategy : Table Per Concrete Class Hierarchy (TABLE_PER_CLASS)

JPA comes with a provision to create tables and populate them as per the Java classes involved in inheritance. JPA offers basically three different approaches to map hierarchical classes – classes involved in inheritance with database tables. Observe, in the above hierarchy, three classes are involved where Person is the super class and Student and […]

Read More

JPA CRUD Example

This tutorial will show you how to use JPA(Java Persistence API) for selecting, inserting, updating and deleting data into/from database. The Java Persistence API (JPA) is a Java specification for accessing, persisting, and managing data between Java objects / classes and a relational database. The JPA is used to reduce the burden of writing codes […]

Read More