How to map a JSON collection using JPA and Hibernate

Introduction The open-source Hypersistence Utils project allows you to map Java objects or Jackson JsonNode as JPA or Hibernate entity properties, and, thanks to our awesome contributors, we have added support for storing type-safe JSON collections. In this article, you are going to see how to achieve this goal.

How to bootstrap JPA programmatically without the persistence.xml configuration file

Introduction One of my Twitter followers asked me if there is any documentation for bootstrapping JPA programmatically so that we can replace the persistence.xml configuration file with a Java configuration: Previously, I wrote an article about bootstrapping Hibernate without the persistence.xml, but that solution was based on the Hibernate-specific EntityManagerFactoryBuilderImpl. In this article, I’m going to give you a solution that works with any JPA provider since it’s based on standard Java Persistence API.

How to order entity subclasses by their class type using JPA and Hibernate

Introduction In this article, we are going to see how to order entity subclasses when executing a JPA query with Hibernate.

Two years as a Hibernate Developer Advocate

Introduction Exactly two years ago today, I started working as a Developer Advocate for the Hibernate team at Red Hat. I wrote a report a year ago to summarize my accomplishments for the Hibernate project, so it’s time to see what’s been done since last year.