I'm interested in replacing the default java serialization in EclipseLink JPA to json using the Jackson engine.
Is there a property where I can set the serialization engine for all my setup?
I know EclipseLink support serialization of json with MOXY but I have other issues with using it.
I'm looking for some global settings which will free me from adding @Convert to hundreds of classes.
For example:
Class A {
String B;
String C;
}
@Entity
Class D {
A a;
}
By default JPA will store field 'a' as byte array while genreating the array with java serizalization. I want to change it to text and store Class A as json.