Mercurial > lada > lada-server
annotate 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 |
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"> |
606
432e253e4788
Updated persistence units.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
437
diff
changeset
|
5 <persistence-unit name="bund"> |
421
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
6 <jta-data-source>java:/jboss/lada-bund</jta-data-source> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
7 <exclude-unlisted-classes>false</exclude-unlisted-classes> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
8 <properties> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
9 <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
|
10 <!-- Properties for Hibernate --> |
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
|
11 <property name="hibernate.show_sql" value="false" /> |
673
e6564d5fdc7a
Use Postgis dialect to talk to the database.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
654
diff
changeset
|
12 <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
|
13 <property name="hibernate.hbm2ddl.auto" value="none"/> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
14 </properties> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
15 </persistence-unit> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
16 <persistence-unit name="land"> |
673
e6564d5fdc7a
Use Postgis dialect to talk to the database.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
654
diff
changeset
|
17 <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
|
18 <exclude-unlisted-classes>false</exclude-unlisted-classes> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
19 <properties> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
20 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/land"/> |
654
54992c5f9898
Use the extended dialect for lada datasources.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
606
diff
changeset
|
21 <property name="hibernate.show_sql" value="true" /> |
673
e6564d5fdc7a
Use Postgis dialect to talk to the database.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
654
diff
changeset
|
22 <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
|
23 <property name="hibernate.hbm2ddl.auto" value="none"/> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
24 </properties> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
25 </persistence-unit> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
26 <persistence-unit name="stamm"> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
27 <jta-data-source>java:/jboss/lada-stamm</jta-data-source> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
28 <properties> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
29 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/stamm"/> |
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="org.hibernate.spatial.dialect.postgis.PostgisDialect"/> |
654
54992c5f9898
Use the extended dialect for lada datasources.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
606
diff
changeset
|
31 <property name="hibernate.show_sql" value="true" /> |
421
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
32 <property name="hibernate.hbm2ddl.auto" value="none"/> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
33 </properties> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
34 </persistence-unit> |
0ec07c73d4bb
Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
35 </persistence> |