Tag: Criteria
Introduction This tutorial will show you how to use JPA(Java Persistence API) Criteria API 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…
Posted in JPA
Introduction Criteria is a simplified API for retrieving entities by composing Criterion objects. This is a very convenient approach for functionality like “search” screens where there is a variable number of conditions to be placed upon the result set. We will configure hibernate using Java based configuration, for example, we will build SessionFactory with required…
Posted in Hibernate