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.
- Jackson
JsonNode - Java Object to String or Binary JSON column mapping
- 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
java.time.YearMonthto DATE or INTEGER columnCharacterto nullable CHAR columnImmutableTypeutility to simplifyUserTypeimplementations
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.3.5</version>
</dependency>
<dependency>
<groupId>com.vladmihalcea</groupId>
<artifactId>hibernate-types-5</artifactId>
<version>2.3.5</version>
</dependency>
<dependency>
<groupId>com.vladmihalcea</groupId>
<artifactId>hibernate-types-43</artifactId>
<version>2.3.5</version>
</dependency>
<dependency>
<groupId>com.vladmihalcea</groupId>
<artifactId>hibernate-types-4</artifactId>
<version>2.3.5</version>
</dependency>
- Java version supported by the Hibernate ORM version you are using.
- SLF4J
- Jackson Databind