In this article, we are going to see how to map the PostgreSQL
inet type with JPA and Hibernate. Traditionally, PostgreSQL has been offering more column types than other relational database systems.
Previously, I showed you how to map JSON and ARRAY as Hibernate Types, and mapping the PostgreSQL
inet type is going to be just as easy.
You don’t even have to implement these types since they are available via the
Continue reading “How to map the PostgreSQL inet type with JPA and Hibernate”
Recently, stumbled on this question on the Hibernate forum, and since I’ve been seeing it before on StackOverflow and bumped into it myself while working with JPA and Hibernate, I decided to turn the answer into an article.
Therefore, in this article, you are going to find out how you can fix the “No Dialect mapping for JDBC type” Hibernate issue.
Continue reading “How to fix the Hibernate “No Dialect mapping for JDBC type” issue”
Inspired by this Hibernate forum post, I decided to write an article to explain how you can filter by the entity type using Criteria API.
Continue reading “How to query by entity type using JPA Criteria API”
As previously explained, although Hibernate does not support database ARRAY column types by default, you can easily implement a custom Hibernate
ArrayType. While the previous solution worked on PostgreSQL, in this article, you are going to see that it is fairly easy to adapt it to HSQLDB.
Continue reading “Hibernate HSQLDB ARRAY Type”
In this article, we are going to see how to order entity subclasses when executing a JPQL query with Hibernate.
Continue reading “How to order entity subclasses by their class type using JPA and Hibernate”