annotate src/main/resources/META-INF/persistence.xml @ 426:7b3b9e5f040d

Added classes to handle serversite configured queries.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 04 Feb 2015 16:08:55 +0100
parents 0ec07c73d4bb
children 5011173fd340
rev   line source
421
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
2 <persistence version="2.1"
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
3 xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
4 xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
5 <persistence-unit name="bund" transaction-type="JTA">
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
6 <!--provider>org.hibernate.jpa.HibernatePersistenceProvider</provider-->
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
7 <jta-data-source>java:/jboss/lada-bund</jta-data-source>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
8 <exclude-unlisted-classes>false</exclude-unlisted-classes>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
9 <properties>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
10 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/bund"/>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
11 <!-- Properties for Hibernate -->
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
12 <property name="hibernate.show_sql" value="true" />
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
13 <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
14 <property name="hibernate.hbm2ddl.auto" value="none"/>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
15 <property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" />
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
16 </properties>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
17 </persistence-unit>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
18 <persistence-unit name="land">
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
19 <provider>org.hibernate.ejb.HibernatePersistence</provider>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
20 <jta-data-source>java:/jboss/lada-land</jta-data-source>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
21 <exclude-unlisted-classes>false</exclude-unlisted-classes>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
22 <properties>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
23 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/land"/>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
24 <property name="hibernate.show_sql" value="true" />
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
25 <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
26 <property name="hibernate.hbm2ddl.auto" value="none"/>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
27 </properties>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
28 </persistence-unit>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
29 <persistence-unit name="stamm">
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
30 <provider>org.hibernate.ejb.HibernatePersistence</provider>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
31 <jta-data-source>java:/jboss/lada-stamm</jta-data-source>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
32 <properties>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
33 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/stamm"/>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
34 <property name="hibernate.show_sql" value="true" />
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
35 <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
36 <property name="hibernate.hbm2ddl.auto" value="none"/>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
37 </properties>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
38 </persistence-unit>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
39 </persistence>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)