0

I am developing a project using Spring boot & Hibernate . I am using MySQL database in this application. In this application, some columns are of JSON type. I have also written Junit test case with MySQL database for this application.

Now I wants to use any in-memory database for Junit test case. I have tried H2, HSQL & Debry for this. I am failing to configure this database because these in-memory databases do not support the JSON data type. If I use MySQL database for Junit test case then it is works fine, but as soon as I change the database to an in-memory database then it fails to work.

Is there any solution for this JSON datatype ?

Note: It is necessary to use JSON column type in application so I can't change this JSON column type.

Lukas Baliak
  • 2,849
  • 2
  • 23
  • 26
Dhaval Goti
  • 447
  • 2
  • 10
  • 25

0 Answers0