Skip to content

hilaryRope/demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository shows the use of hibernate-types and in particular the mapping of JSONB data type in Postgres with Hibernate and JPA.

The project is a Gradle one and it uses the following Hibernate Type dependency:

com.vladmihalcea:hibernate-types-52:2.5.0

It consists of the following main packages:

  • com.example.demo including the bootstrap StringBoot class
  • com.example.demo.entity holding the Sample Entity and an abstract Hibernate class to deal with ID, equals, toString and hashCode.
  • com.example.demo.pojo including the PoJo class for the JSON properties
  • com.example.demo.repository including the Repository
  • com.example.demo.util.postgres.dialect including the custom dialect for Postgres

##References Mapping JSON collections using JPA and Hibernate Resolving Hibernate No Dialect Mapping - Hibernate Types

About

Demo project to work with hibernate-types

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages