Mercurial > lada > lada-server
annotate src/main/resources/META-INF/persistence.xml @ 749:cb841ed21405
Dockerfile: add comment where server is reachable.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 28 Oct 2015 11:05:28 +0100 |
parents | 46bb231ff9b9 |
children | 8249a76a1f6d |
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 --> |
421
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
8 <jta-data-source>java:/jboss/lada-bund</jta-data-source> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
9 <exclude-unlisted-classes>false</exclude-unlisted-classes> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
10 <properties> |
691
46bb231ff9b9
Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
673
diff
changeset
|
11 <!-- The JNDI name for lookups in the application --> |
421
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
12 <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
|
13 <!-- Properties for Hibernate --> |
691
46bb231ff9b9
Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
673
diff
changeset
|
14 <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
|
15 <property name="hibernate.show_sql" value="false" /> |
691
46bb231ff9b9
Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
673
diff
changeset
|
16 <!-- 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
|
17 <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
|
18 </properties> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
19 </persistence-unit> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
20 <persistence-unit name="land"> |
691
46bb231ff9b9
Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
673
diff
changeset
|
21 <!-- The JTA datasource configured in the Wildfly AS --> |
673
e6564d5fdc7a
Use Postgis dialect to talk to the database.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
654
diff
changeset
|
22 <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
|
23 <exclude-unlisted-classes>false</exclude-unlisted-classes> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
24 <properties> |
691
46bb231ff9b9
Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
673
diff
changeset
|
25 <!-- The JNDI name for lookups in the application --> |
421
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
26 <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
|
27 <!-- Properties for Hibernate --> |
46bb231ff9b9
Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
673
diff
changeset
|
28 <property name="hibernate.hbm2ddl.auto" value="none"/> |
654
54992c5f9898
Use the extended dialect for lada datasources.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
606
diff
changeset
|
29 <property name="hibernate.show_sql" value="true" /> |
691
46bb231ff9b9
Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
673
diff
changeset
|
30 <!-- 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
|
31 <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
|
32 </properties> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
33 </persistence-unit> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
34 <persistence-unit name="stamm"> |
691
46bb231ff9b9
Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
673
diff
changeset
|
35 <!-- The JTA datasource configured in the Wildfly AS --> |
421
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
36 <jta-data-source>java:/jboss/lada-stamm</jta-data-source> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
37 <properties> |
691
46bb231ff9b9
Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
673
diff
changeset
|
38 <!-- The JNDI name for lookups in the application --> |
421
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
39 <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
|
40 <!-- Properties for Hibernate --> |
654
54992c5f9898
Use the extended dialect for lada datasources.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
606
diff
changeset
|
41 <property name="hibernate.show_sql" value="true" /> |
421
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
42 <property name="hibernate.hbm2ddl.auto" value="none"/> |
691
46bb231ff9b9
Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
673
diff
changeset
|
43 <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
|
44 </properties> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
45 </persistence-unit> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
46 </persistence> |