What is the best practice for working with JSON column within Java code? Specifically I am interested in being able to save & query JSON columns in a MySQL DB using hibernate..
@Entity
public class MyEntity {
private String myField; // this field is a json column
public MyEntity() {
}
}
javax.json
classes, then there is one way to automate the conversion to and from strings by just adding this dependency to your project mvnrepository.com/artifact/com.mopano/… Otherwise, you'll just have to use manual conversion or try and hope that a JPA AttributeConverter works.