annotate src/main/resources/META-INF/persistence.xml @ 1032:1c6c83037b8c schema-update

Updated sql query strings to match the new schema.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 31 Aug 2016 15:47:52 +0200
parents 1c41c7b8f7c2
children
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="land">
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
6 <!-- 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
7 <jta-data-source>java:jboss/lada-land</jta-data-source>
1028
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents: 826
diff changeset
8 <class>de.intevation.lada.model.stammdaten.FilterType</class>
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents: 826
diff changeset
9 <class>de.intevation.lada.model.stammdaten.QueryType</class>
1c41c7b8f7c2 Updated server application to new database model. THIS IS STILL WIP!!!
Raimund Renkert <raimund.renkert@intevation.de>
parents: 826
diff changeset
10 <class>de.intevation.lada.model.land.KommentarP</class>
421
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
11 <exclude-unlisted-classes>false</exclude-unlisted-classes>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
12 <properties>
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
13 <!-- The JNDI name for lookups in the application -->
421
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
14 <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
15 <!-- Properties for Hibernate -->
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
16 <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
17 <property name="hibernate.show_sql" value="false" />
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
18 <!-- 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
19 <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
20 </properties>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
21 </persistence-unit>
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
22 <persistence-unit name="stamm">
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
23 <!-- 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
24 <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
25 <properties>
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
26 <!-- The JNDI name for lookups in the application -->
421
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
27 <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
28 <!-- Properties for Hibernate -->
804
8249a76a1f6d Do not trace SQL statements to lada-server.log.
Tom Gottfried <tom@intevation.de>
parents: 691
diff changeset
29 <property name="hibernate.show_sql" value="false" />
421
0ec07c73d4bb Added basic config files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
30 <property name="hibernate.hbm2ddl.auto" value="none"/>
691
46bb231ff9b9 Documentation.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 673
diff changeset
31 <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
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>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)