How to map the PostgreSQL inet type with JPA and Hibernate

Introduction

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 hibernate-types project.

Continue reading “How to map the PostgreSQL inet type with JPA and Hibernate”

How to fix the Hibernate “No Dialect mapping for JDBC type” issue

Introduction

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”