Hibernate Spatial 5 - GeometryType

后端 未结 6 1888
刺人心
刺人心 2021-02-01 16:36

After upgrading Hibernate-spatial to Version 5.0.0.CR2 the following declaration doesn\'t work anymore:

@Column(columnDefinition = \"geometry(Point,4326)\")
@Typ         


        
6条回答
  •  广开言路
    2021-02-01 16:55

    I am using hibernate 4.3.6 and hibernate spatial 5.2.2. The solution suggested above didn't work for me. However the below code worked If I add hibernate spatial 4.3

    @Type(type="org.hibernate.spatial.GeometryType")
    private Point location;
    

提交回复
热议问题