comparison src/main/resources/META-INF/persistence.xml @ 673:e6564d5fdc7a

Use Postgis dialect to talk to the database.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 22 May 2015 15:12:54 +0200
parents 54992c5f9898
children 46bb231ff9b9
comparison
equal deleted inserted replaced
672:aeae6a81f28e 673:e6564d5fdc7a
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <persistence version="2.1" 2 <persistence version="2.1"
3 xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 3 xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> 4 xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
5 <persistence-unit name="bund"> 5 <persistence-unit name="bund">
6 <!--provider>org.hibernate.jpa.HibernatePersistenceProvider</provider-->
7 <jta-data-source>java:/jboss/lada-bund</jta-data-source> 6 <jta-data-source>java:/jboss/lada-bund</jta-data-source>
8 <exclude-unlisted-classes>false</exclude-unlisted-classes> 7 <exclude-unlisted-classes>false</exclude-unlisted-classes>
9 <properties> 8 <properties>
10 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/bund"/> 9 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/bund"/>
11 <!-- Properties for Hibernate --> 10 <!-- Properties for Hibernate -->
12 <property name="hibernate.show_sql" value="false" /> 11 <property name="hibernate.show_sql" value="false" />
13 <property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgreSQLDialect"/> 12 <property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgisDialect"/>
14 <property name="hibernate.hbm2ddl.auto" value="none"/> 13 <property name="hibernate.hbm2ddl.auto" value="none"/>
15 <!-- property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" /-->
16 </properties> 14 </properties>
17 </persistence-unit> 15 </persistence-unit>
18 <persistence-unit name="land"> 16 <persistence-unit name="land">
19 <provider>org.hibernate.ejb.HibernatePersistence</provider> 17 <jta-data-source>java:/jboss/lada-land</jta-data-source>
20 <jta-data-source>java:/jboss/lada-land</jta-data-source>
21 <exclude-unlisted-classes>false</exclude-unlisted-classes> 18 <exclude-unlisted-classes>false</exclude-unlisted-classes>
22 <properties> 19 <properties>
23 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/land"/> 20 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/land"/>
24 <property name="hibernate.show_sql" value="true" /> 21 <property name="hibernate.show_sql" value="true" />
25 <property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgreSQLDialect"/> 22 <property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgisDialect"/>
26 <property name="hibernate.hbm2ddl.auto" value="none"/> 23 <property name="hibernate.hbm2ddl.auto" value="none"/>
27 </properties> 24 </properties>
28 </persistence-unit> 25 </persistence-unit>
29 <persistence-unit name="stamm"> 26 <persistence-unit name="stamm">
30 <provider>org.hibernate.ejb.HibernatePersistence</provider>
31 <jta-data-source>java:/jboss/lada-stamm</jta-data-source> 27 <jta-data-source>java:/jboss/lada-stamm</jta-data-source>
32 <properties> 28 <properties>
33 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/stamm"/> 29 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/stamm"/>
34 <property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgreSQLDialect"/> 30 <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/>
35 <property name="hibernate.show_sql" value="true" /> 31 <property name="hibernate.show_sql" value="true" />
36 <property name="hibernate.hbm2ddl.auto" value="none"/> 32 <property name="hibernate.hbm2ddl.auto" value="none"/>
37 </properties> 33 </properties>
38 </persistence-unit> 34 </persistence-unit>
39 </persistence> 35 </persistence>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)