comparison src/main/resources/META-INF/persistence.xml @ 1028:1c41c7b8f7c2 schema-update

Updated server application to new database model. THIS IS STILL WIP!!!
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 08 Jul 2016 15:32:36 +0200
parents 90343e38225f
children
comparison
equal deleted inserted replaced
1027:9971471d562c 1028:1c41c7b8f7c2
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <persistence version="2.1" 2 <persistence version="2.1"
3 xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 3 xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> 4 xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
5 <!-- PU for bund datasource. Maps to the schema 'bund' in the Lada database. -->
6 <persistence-unit name="bund">
7 <!-- The JTA datasource configured in the Wildfly AS -->
8 <jta-data-source>java:jboss/lada-bund</jta-data-source>
9 <properties>
10 <!-- The JNDI name for lookups in the application -->
11 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/bund"/>
12 <!-- Properties for Hibernate -->
13 <property name="hibernate.hbm2ddl.auto" value="none"/>
14 <property name="hibernate.show_sql" value="false" />
15 <!-- Use a special PostGIS dialect implmented for Lada. This dialect implements an additional integer array type -->
16 <property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgisDialect"/>
17 </properties>
18 </persistence-unit>
19 <persistence-unit name="land"> 5 <persistence-unit name="land">
20 <!-- The JTA datasource configured in the Wildfly AS --> 6 <!-- The JTA datasource configured in the Wildfly AS -->
21 <jta-data-source>java:jboss/lada-land</jta-data-source> 7 <jta-data-source>java:jboss/lada-land</jta-data-source>
8 <class>de.intevation.lada.model.stammdaten.FilterType</class>
9 <class>de.intevation.lada.model.stammdaten.QueryType</class>
10 <class>de.intevation.lada.model.land.KommentarP</class>
22 <exclude-unlisted-classes>false</exclude-unlisted-classes> 11 <exclude-unlisted-classes>false</exclude-unlisted-classes>
23 <properties> 12 <properties>
24 <!-- The JNDI name for lookups in the application --> 13 <!-- The JNDI name for lookups in the application -->
25 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/land"/> 14 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/land"/>
26 <!-- Properties for Hibernate --> 15 <!-- Properties for Hibernate -->
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)