The Hibernate Types repository gives you extra types that are not supported by the Hibernate ORM core.
- Jackson
JsonNode
- Any Java object to String or Binary JSON column mapping
- PostgreSQL ARRAY mapping
- Java Enum to PostgreSQL Enum Type
Character
to nullable CHAR columnImmutableType
utiility to simplifyUserType
implementations
Depending on the Hibernate version you are using, you need to following dependency:
<dependency>
<groupId>com.vladmihalcea</groupId>
<artifactId>hibernate-types-52</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>com.vladmihalcea</groupId>
<artifactId>hibernate-types-5</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>com.vladmihalcea</groupId>
<artifactId>hibernate-types-43</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>com.vladmihalcea</groupId>
<artifactId>hibernate-types-4</artifactId>
<version>1.1.1</version>
</dependency>
- Java 1.6 or above. Same as the Hibernate ORM version you are using.
- SLF4J