You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**[How To Store JSON in MySQL](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootJsonToMySQL)**
1
+
**[How To Handle JSON in PostgreSQL](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootJsonToPostgreSQL)**
2
2
3
-
**Description:**[Hibernate Types](https://github.com/vladmihalcea/hibernate-types) is a library of extra types not supported by Hibernate Core by default. This is a Spring Boot application that uses this library to store JSON data (JSON Java `Object`) in a MySQL`json` column and for querying JSON data from the MySQL`json` column to JSON Java `Object`.
3
+
**Description:**[Hibernate Types](https://github.com/vladmihalcea/hibernate-types) is a library of extra types not supported by Hibernate Core by default. This is a Spring Boot application that uses this library to store JSON data (JSON Java `Object`) in a PostgreSQL`json` column and for querying JSON data from the PostgreSQL`json` column to JSON Java `Object`.
4
4
5
5
**Key points:**\
6
6
- for Maven, add Hibernate Types as a dependency in pom.xml\
7
-
- in entity use `@TypeDef` to map `typeClass` to `JsonStringType`
7
+
- in entity use `@TypeDef` to map `typeClass` to `JsonBinaryType`
0 commit comments