I have an Entity
which has a field named coordinates
of type org.postgresql.geometric.PGpath
:
public class Geometry
{
...
@Column
@NotNull
private PGpath coordinates;
I am trying to build a JSONObject
with some of these entities but I am getting the message:
could not deserialize; nested exception is org.hibernate.type.SerializationException: could not deserialize