jinq

JPA can't convert PostgreSQL POINT type

时光怂恿深爱的人放手 提交于 2019-12-12 04:38:25
问题 I am in the process converting an existing Spring project to JPA/Jinq. One of my database columns is using the PostGIS geometry POINT type. I am mapping the table for that column to an entity called City. The class for that something like this: import java.io.Serializable import javax.persistence.*; import org.postgresql.geometric.PGpoint; @Entity @NamedQuery(name="City.findAll", query="SELECT c FROM City c") public class City implements Serializable { private static final long