Switch from JsonStringType to JsonBinaryType when the project uses both MySQL and PostgreSQL
- 阅读更多 关于 Switch from JsonStringType to JsonBinaryType when the project uses both MySQL and PostgreSQL
问题 I have a problem with column json when it's necessary to switching from PostgreSQL to MariaDB/MySql. I use Spring Boot + JPA + Hibernate + hibernate-types-52. The table i want to map is like this: CREATE TABLE atable( ... acolumn JSON, ... ); Ok it works for PostgreSQL and MariaDB/MySql. The problem is when i want to deploy an application that switch easly from one to another because the correct hibernate-types-52 implementation for PostgreSQL and MySQL/MariaDB are different This works on