diff src/main/resources/META-INF/persistence.xml @ 421:0ec07c73d4bb

Added basic config files.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 04 Feb 2015 16:01:53 +0100
parents
children 5011173fd340
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/resources/META-INF/persistence.xml	Wed Feb 04 16:01:53 2015 +0100
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence version="2.1"
+   xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
+    <persistence-unit name="bund" transaction-type="JTA">
+        <!--provider>org.hibernate.jpa.HibernatePersistenceProvider</provider-->
+        <jta-data-source>java:/jboss/lada-bund</jta-data-source>
+        <exclude-unlisted-classes>false</exclude-unlisted-classes>
+        <properties>
+            <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/bund"/>
+            <!-- Properties for Hibernate -->
+            <property name="hibernate.show_sql" value="true" />
+            <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/>
+            <property name="hibernate.hbm2ddl.auto" value="none"/>
+            <property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" /> 
+       </properties>
+   	</persistence-unit>
+   	<persistence-unit name="land">
+   	    <provider>org.hibernate.ejb.HibernatePersistence</provider>
+        <jta-data-source>java:/jboss/lada-land</jta-data-source>
+       	<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="true" />
+            <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/>
+            <property name="hibernate.hbm2ddl.auto" value="none"/>
+       </properties>
+    </persistence-unit>
+    <persistence-unit name="stamm">
+        <provider>org.hibernate.ejb.HibernatePersistence</provider>
+        <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="true" />
+            <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/>
+            <property name="hibernate.hbm2ddl.auto" value="none"/>
+        </properties>
+    </persistence-unit>
+</persistence>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)