title: Getting org.postgresql.geometric.PGpoint instead of org.postgis.PGgeometry in Hibernate Spatial
body: <p>I've been struggling with this for a while. Running on Tomcat 7.0.47</p>
  
  <p>Relevant Entity Class snippet:</p>
  
  <pre><code>@Column(name = "geopoint", columnDefinition = "org.postgis.Geometry")
  @Type(type = "org.hibernate.spatial.GeometryType")
  private com.vividsolutions.jts.geom.Point geopoint;
  </code></pre>
  
  <p>Here are the libraries I'm using:</p>
  
  <pre><code>Hibernate Spatial 4.0-M1
  postgis-jdbc 2.1.0SVN (used 1.5.3 before, same issue.)
  Hibernate 4.2.7
  </code></pre>
  
  <p>Datasource Info</p>
  
  <pre><code>Datasource = org.apache.tomcat.jdbc.pool.DataSource
  Driver Class Name = org.postgis.DriverWrapper
  JDBC URL Beginning = jdbc:postgresql_postGIS:
  </code></pre>
  
  <p>The DB is PostgreSql 9.3 on Amazon RDS with PostGIS installed. The column geopoint is of type "point". I created this table using PgAdminIII</p>
  
  <p>Hibernate Session Factory props</p>
  
  <pre><code> &lt;prop key="hibernate.temp.use_jdbc_metadata_defaults"&gt;false&lt;/prop&gt;
   &lt;prop key="hibernate.dialect"&gt;org.hibernate.spatial.dialect.postgis.PostgisDialect&lt;/prop&gt;
   &lt;prop key="hibernate.showsql"&gt;true&lt;/prop&gt;
  </code></pre>
  
  <p>I've debugged the code to see that the JDBC seems to be returning PGPoint. PGGeometryValueExtractor.toJTS(Object) receives a PGPoint. It seems Hibernate Spatial intends for it to be a org.postgis.Geometry or org.postgis.PGGeometry object.</p>
  
  <p>Any help would be appreciated.</p>