2015-11-02 97 views

回答

0

使用Hibernate空間5的示例表(使用註解-方法)可能看起來像:

@Entity 
public class MultiPolygon { 

    @Id 
    private int id; 

    @Column(columnDefinition = "geometry(MultiPolygon,4326)") 
    private com.vividsolutions.jts.geom.MultiPolygon polygon; 

    // ... Getters - setters 
}