The Criteria API provides a type-safe way to define queries programmatically. This article shows how to select Plain Old Java Objects with a CriteriaQuery.
Tag: Hibernate
A tutorial on how to use Contexts and Dependency Injection (CDI) / Weld and Hibernate in the development of a full-blown JPA application.
A hands-on guide to domain model validation with the Java Beans Validation standard (JSR 303) and Hibernate Validator (Apache BVal is very similar.)
Explains how to use Spring Boot with JDBI instead of Hibernate, resulting first-class dependency injection (by Spring Boot) and a light ORM (JDBI).
Exploring the limitations of Hibernate's schema generation utility hbm2ddl and the benefits of an automated schema migration tool such as FlywayDB.
JPA/Hibernate is a common approach to persistence in Java. This tutorial creates a simple CRUD app using Hibernate's EntityManager and the DAO pattern.
JPA and Hibernate as its most popular implementation are, therefore, the most common choice to implement database access.