The Hibernate Types repository gives you extra types and general purpose utilities that are not supported by the Hibernate ORM core.
The main advantage of this project is that it supports a broad range of Hibernate versions, spanning from Hibernate 4.1 to Hibernate 5.4.
- How to map a Jackson
JsonNode
to a JSON column - Java Object to String or Binary JSON column mapping
- How to map JSON collections using JPA and Hibernate
- Java Collection to String or Binary JSON column mapping
- How to customize the Jackson ObjectMapper used by Hibernate-Types
- How to customize the JSON Serializer used by Hibernate-Types
- How to fix the Hibernate “No Dialect mapping for JDBC type: 1111” issue when mixing JSON types with native SQL queries
- PostgreSQL ARRAY mapping
- Java Enum to PostgreSQL Enum Type
- How to map the PostgreSQL Inet type with JPA and Hibernate
- How to map a PostgreSQL HStore entity property with JPA and Hibernate
- How to map a PostgreSQL Enum ARRAY to a JPA entity property using Hibernate
- How to map a PostgreSQL Range column type with JPA and Hibernate
java.time.YearMonth
to DATE or INTEGER columnCharacter
to nullable CHAR columnImmutableType
utility to simplifyUserType
implementations
I could help you get the most out of your data access layer.
If you are interested in on-site training, I can offer you my High-Performance Java Persistence training which can be adapted to one, two or three days of sessions. For more details, check out my website.
If you want me to review your application and provide insight into how you can optimize it to run faster, then check out my consulting page.
If you want the fastest way to learn how to speed up a Java database application, then you should definitely enroll in my High-Performance Java Persistence video courses.
Or, if you prefer reading books, you are going to love my High-Performance Java Persistence book as well.
Depending on the Hibernate version you are using, you need to following dependency:
<dependency>
<groupId>com.vladmihalcea</groupId>
<artifactId>hibernate-types-52</artifactId>
<version>2.4.4</version>
</dependency>
<dependency>
<groupId>com.vladmihalcea</groupId>
<artifactId>hibernate-types-5</artifactId>
<version>2.4.4</version>
</dependency>
<dependency>
<groupId>com.vladmihalcea</groupId>
<artifactId>hibernate-types-43</artifactId>
<version>2.4.4</version>
</dependency>
<dependency>
<groupId>com.vladmihalcea</groupId>
<artifactId>hibernate-types-4</artifactId>
<version>2.4.4</version>
</dependency>
- Java version supported by the Hibernate ORM version you are using.
- SLF4J
- Jackson Databind