GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Sandeep8294/hibernate-types: The Hibernate Types repository gives you extra types that are not supported by the Hibernate ORM core.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

120 Commits
120 Commits

Folders and files

NameName
Last commit message
Last commit date
hibernate-types-4
hibernate-types-4
 
 
hibernate-types-43
hibernate-types-43
 
 
hibernate-types-5
hibernate-types-5
 
 
hibernate-types-52
hibernate-types-52
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
changelog.txt
changelog.txt
 
 
pom.xml
pom.xml
 
 
release-perform.bat
release-perform.bat
 
 
release-prepare.bat
release-prepare.bat
 
 

Repository files navigation

License Maven Central JavaDoc

Introduction

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.

Features

JSON

  • 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 Types (e.g. ARRAY, ENUM, INET)

  • PostgreSQL ARRAY mapping
  • Java Enum to PostgreSQL Enum Type
  • How to map the PostgreSQL inet type with JPA and Hibernate

Generic Types

  • java.time.YearMonth to DATE or INTEGER column
  • Character to nullable CHAR column
  • ImmutableType utility to simplify UserType implementations

Utilities

  • How to map camelCase properties to snake_case column names with Hibernate

Installation

Depending on the Hibernate version you are using, you need to following dependency:

Hibernate 5.4, 5.3 and 5.2

<dependency>
    <groupId>com.vladmihalcea</groupId>
    <artifactId>hibernate-types-52</artifactId>
    <version>2.3.5</version>
</dependency>

Hibernate 5.1 and 5.0

<dependency>
    <groupId>com.vladmihalcea</groupId>
    <artifactId>hibernate-types-5</artifactId>
    <version>2.3.5</version>
</dependency>

Hibernate 4.3

<dependency>
    <groupId>com.vladmihalcea</groupId>
    <artifactId>hibernate-types-43</artifactId>
    <version>2.3.5</version>
</dependency>

Hibernate 4.2 and 4.1

<dependency>
    <groupId>com.vladmihalcea</groupId>
    <artifactId>hibernate-types-4</artifactId>
    <version>2.3.5</version>
</dependency>

If you like it, you are going to love my book as well!

High-Performance Java Persistence

Requirements

  • Java version supported by the Hibernate ORM version you are using.
  • SLF4J
  • Jackson Databind

About

The Hibernate Types repository gives you extra types that are not supported by the Hibernate ORM core.

Resources

Readme
Apache-2.0 license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.