У меня есть Entity
, в котором есть поле с именем coordinates
типа org.postgresql.geometric.PGpath
:
public class Geometry
{
...
@Column
@NotNull
private PGpath coordinates;
Я пытаюсь построить JSONObject
с некоторыми из этих объектов, но получаю сообщение:
could not deserialize; nested exception is org.hibernate.type.SerializationException: could not deserialize