Rev 40 | Rev 170 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?xml version="1.0" encoding="UTF-8"?><document><header /><body><section name="Hibernate Spatial Postgis Provider Usage"><p>To have Hibernate Spatial use this provider, simply dropthe jar on the class-path alongside thehibernate-spatial.jar. When the Hibernate Spatiallibrary is loaded it will find the provider and use itto retrieve the Hibernate dialect for Postgresql withthe Postgis extension. This dialect is a subclass of<code>org.hibernate.dialect.PostgreSQLDialect</code></p><p>With the provider installed, you can use it by settingthe dialect in the Hibernate configuration file as inthe following snippet.</p><source>...<property name="hibernate.dialect">org.hibernatespatial.postgis.PostgisDialect</property>...</source><p>When there is more than one Hibernate Spatial provideron the Class-Path, you should explicitly label thedialect for the Geometry valued properties.</p><source>...<property name="geometry"type="org.hibernatespatial.GeometryUserType"><column name="geom" /><param name="dialect">postgis</param></property>...</source></section></body></document>