[Lada-commits] [PATCH 2 of 8] Use the extended dialect for lada datasources

Wald Commits scm-commit at wald.intevation.org
Tue May 12 15:20:04 CEST 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1431436565 -7200
# Node ID 54992c5f9898e18249df6ac6728391cde182952c
# Parent  d067d72e602cdf35f964a39dd196588678ae17ff
Use the extended dialect for lada datasources.

diff -r d067d72e602c -r 54992c5f9898 src/main/resources/META-INF/persistence.xml
--- a/src/main/resources/META-INF/persistence.xml	Tue May 12 15:15:27 2015 +0200
+++ b/src/main/resources/META-INF/persistence.xml	Tue May 12 15:16:05 2015 +0200
@@ -10,7 +10,7 @@
             <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/bund"/>
             <!-- Properties for Hibernate -->
             <property name="hibernate.show_sql" value="false" />
-            <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/>
+            <property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgreSQLDialect"/>
             <property name="hibernate.hbm2ddl.auto" value="none"/>
             <!-- property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" /--> 
        </properties>
@@ -21,8 +21,8 @@
        	<exclude-unlisted-classes>false</exclude-unlisted-classes>
     	<properties>
             <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/land"/>
-            <property name="hibernate.show_sql" value="false" />
-            <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/>
+            <property name="hibernate.show_sql" value="true" />
+			<property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgreSQLDialect"/>
             <property name="hibernate.hbm2ddl.auto" value="none"/>
        </properties>
     </persistence-unit>
@@ -31,8 +31,8 @@
         <jta-data-source>java:/jboss/lada-stamm</jta-data-source>
         <properties>
             <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/stamm"/>
-            <property name="hibernate.show_sql" value="false" />
-            <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/>
+			<property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgreSQLDialect"/>
+            <property name="hibernate.show_sql" value="true" />
             <property name="hibernate.hbm2ddl.auto" value="none"/>
         </properties>
     </persistence-unit>


More information about the Lada-commits mailing list