annotate src/main/resources/META-INF/persistence.xml @ 910:8c61587f7a7b

Remove PostgreSQL 9.5-specific client parameter. It has no effect for superusers and we need to be superuser because we DISABLE TRIGGER ALL anyway.
author Tom Gottfried <tom@intevation.de>
date Fri, 08 Apr 2016 11:10:14 +0200
parents 90343e38225f
children 1c41c7b8f7c2
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">
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
5 <!-- PU for bund datasource. Maps to the schema 'bund' in the Lada database. -->
606
432e253e4788 Updated persistence units.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 437
diff changeset
6 <persistence-unit name="bund">
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
7 <!-- The JTA datasource configured in the Wildfly AS -->
826
90343e38225f !!!CAUTION!!! Changed persistence unit JNDI name!
Raimund Renkert <raimund.renkert@intevation.de>
parents: 804
diff changeset
8 <jta-data-source>java:jboss/lada-bund</jta-data-source>
421
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
9 <properties>
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
10 <!-- The JNDI name for lookups in the application -->
421
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
11 <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
12 <!-- Properties for Hibernate -->
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
13 <property name="hibernate.hbm2ddl.auto" value="none"/>
437
5011173fd340 Updated logging infrastructure. Using log4j 1.2.17 since log4j2 does not with arquillian.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 421
diff changeset
14 <property name="hibernate.show_sql" value="false" />
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
15 <!-- Use a special PostGIS dialect implmented for Lada. This dialect implements an additional integer array type -->
673
e6564d5fdc7a Use Postgis dialect to talk to the database.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 654
diff changeset
16 <property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgisDialect"/>
421
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
17 </properties>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
18 </persistence-unit>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
19 <persistence-unit name="land">
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
20 <!-- The JTA datasource configured in the Wildfly AS -->
826
90343e38225f !!!CAUTION!!! Changed persistence unit JNDI name!
Raimund Renkert <raimund.renkert@intevation.de>
parents: 804
diff changeset
21 <jta-data-source>java:jboss/lada-land</jta-data-source>
421
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
22 <exclude-unlisted-classes>false</exclude-unlisted-classes>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
23 <properties>
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
24 <!-- The JNDI name for lookups in the application -->
421
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
25 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/land"/>
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
26 <!-- Properties for Hibernate -->
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
27 <property name="hibernate.hbm2ddl.auto" value="none"/>
804
8249a76a1f6d Do not trace SQL statements to lada-server.log.
Tom Gottfried <tom@intevation.de>
parents: 691
diff changeset
28 <property name="hibernate.show_sql" value="false" />
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
29 <!-- Use a special PostGIS dialect implmented for Lada. This dialect implements an additional integer array type -->
673
e6564d5fdc7a Use Postgis dialect to talk to the database.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 654
diff changeset
30 <property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgisDialect"/>
421
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
31 </properties>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
32 </persistence-unit>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
33 <persistence-unit name="stamm">
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
34 <!-- The JTA datasource configured in the Wildfly AS -->
826
90343e38225f !!!CAUTION!!! Changed persistence unit JNDI name!
Raimund Renkert <raimund.renkert@intevation.de>
parents: 804
diff changeset
35 <jta-data-source>java:jboss/lada-stamm</jta-data-source>
421
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
36 <properties>
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
37 <!-- The JNDI name for lookups in the application -->
421
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
38 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/stamm"/>
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
39 <!-- Properties for Hibernate -->
804
8249a76a1f6d Do not trace SQL statements to lada-server.log.
Tom Gottfried <tom@intevation.de>
parents: 691
diff changeset
40 <property name="hibernate.show_sql" value="false" />
421
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
41 <property name="hibernate.hbm2ddl.auto" value="none"/>
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
42 <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/>
421
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
43 </properties>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
44 </persistence-unit>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
45 </persistence>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)