title: Use Point type with PostgreSQL and JPA/Hibernate
body: <p>Is there a way to map Point column to Java entity field? </p>
  
  <p>I tried Hibernate Spatial 4.0, but seems that it doesn't work with pure PostgreSQL without PostGIS. Here is point field definition:</p>
  
  <pre><code>import com.vividsolutions.jts.geom.Point;
  ...
  @Column(columnDefinition = "point")
  @Type(type = "org.hibernate.spatial.GeometryType")
  private Point location;
  </code></pre>
  
  <p>Dialect in persistence.xml:</p>
  
  <pre><code>&lt;property name="hibernate.dialect"  value="org.hibernate.spatial.dialect.postgis.PostgisDialect" /&gt;
  </code></pre>
  
  <p>And when I try to persist this entity, exception is thrown:</p>
  
  <pre><code>org.postgresql.util.PSQLException: Unknown type geometry.
  at org.postgresql.jdbc2.AbstractJdbc2Statement.setPGobject(AbstractJdbc2Statement.java:1603)
  at org.postgresql.jdbc2.AbstractJdbc2Statement.setObject(AbstractJdbc2Statement.java:1795)
  at org.postgresql.jdbc3g.AbstractJdbc3gStatement.setObject(AbstractJdbc3gStatement.java:37)
  at org.postgresql.jdbc4.AbstractJdbc4Statement.setObject(AbstractJdbc4Statement.java:46)
  at org.hibernate.spatial.dialect.AbstractJTSGeometryValueBinder.bind(AbstractJTSGeometryValueBinder.java:48)
  at org.hibernate.spatial.dialect.AbstractJTSGeometryValueBinder.bind(AbstractJTSGeometryValueBinder.java:39)
  at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:280)
  at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:275)
  at org.hibernate.type.AbstractSingleColumnStandardBasicType.nullSafeSet(AbstractSingleColumnStandardBasicType.java:57)
  </code></pre>
  
  <p>So seems that it tries to persist value as Geometry type of PostGIS. But I want to use just simple Point.</p>