Java Postgres点类型列到Spring实体数据类型

Java Postgres点类型列到Spring实体数据类型,java,postgresql,spring-boot,spring-mvc,Java,Postgresql,Spring Boot,Spring Mvc,我有一张postgres表: CREATE TABLE public.geometry ( id serial not null primary key, coordinates point not null ); 我试图从使用Spring的服务器检索一行作为JSON响应API,其类如下: @Entity @Table(name = "geometry",schema = "public") @JsonIdentityInfo(generator=RefIn

我有一张postgres表:

CREATE TABLE public.geometry
(
    id          serial not null primary key,
    coordinates point not null

);
我试图从使用Spring的服务器检索一行作为JSON响应API,其类如下:

@Entity
@Table(name = "geometry",schema = "public")
@JsonIdentityInfo(generator=RefIntSequenceGenerator.class)
public class Cylinder
{

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", columnDefinition = "serial", updatable = false, nullable = false)
    @NotNull
    private long id;

    @NotNull
    private Point coordinates;

    public long getId()
    {
        return id;
    }

    public Point getCoordinates() {
        return coordinates;
    }
}
但当我试图进入终点时,我得到:

could not deserialize; nested exception is org.hibernate.type.SerializationException: could not deserialize

你能给github和Replicater的链接吗?你能给github和Replicater的链接吗?