comparison src/main/resources/META-INF/persistence.xml @ 826:90343e38225f

!!!CAUTION!!! Changed persistence unit JNDI name! If you are updating to this version you have to change the JNDI name of the persistence units in the application server.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 18 Dec 2015 17:42:24 +0100
parents 8249a76a1f6d
children 1c41c7b8f7c2
comparison
equal deleted inserted replaced
825:e49494d97437 826:90343e38225f
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. --> 5 <!-- PU for bund datasource. Maps to the schema 'bund' in the Lada database. -->
6 <persistence-unit name="bund"> 6 <persistence-unit name="bund">
7 <!-- The JTA datasource configured in the Wildfly AS --> 7 <!-- The JTA datasource configured in the Wildfly AS -->
8 <jta-data-source>java:/jboss/lada-bund</jta-data-source> 8 <jta-data-source>java:jboss/lada-bund</jta-data-source>
9 <exclude-unlisted-classes>false</exclude-unlisted-classes>
10 <properties> 9 <properties>
11 <!-- The JNDI name for lookups in the application --> 10 <!-- The JNDI name for lookups in the application -->
12 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/bund"/> 11 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/bund"/>
13 <!-- Properties for Hibernate --> 12 <!-- Properties for Hibernate -->
14 <property name="hibernate.hbm2ddl.auto" value="none"/> 13 <property name="hibernate.hbm2ddl.auto" value="none"/>
17 <property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgisDialect"/> 16 <property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgisDialect"/>
18 </properties> 17 </properties>
19 </persistence-unit> 18 </persistence-unit>
20 <persistence-unit name="land"> 19 <persistence-unit name="land">
21 <!-- The JTA datasource configured in the Wildfly AS --> 20 <!-- The JTA datasource configured in the Wildfly AS -->
22 <jta-data-source>java:/jboss/lada-land</jta-data-source> 21 <jta-data-source>java:jboss/lada-land</jta-data-source>
23 <exclude-unlisted-classes>false</exclude-unlisted-classes> 22 <exclude-unlisted-classes>false</exclude-unlisted-classes>
24 <properties> 23 <properties>
25 <!-- The JNDI name for lookups in the application --> 24 <!-- The JNDI name for lookups in the application -->
26 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/land"/> 25 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/land"/>
27 <!-- Properties for Hibernate --> 26 <!-- Properties for Hibernate -->
31 <property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgisDialect"/> 30 <property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgisDialect"/>
32 </properties> 31 </properties>
33 </persistence-unit> 32 </persistence-unit>
34 <persistence-unit name="stamm"> 33 <persistence-unit name="stamm">
35 <!-- The JTA datasource configured in the Wildfly AS --> 34 <!-- The JTA datasource configured in the Wildfly AS -->
36 <jta-data-source>java:/jboss/lada-stamm</jta-data-source> 35 <jta-data-source>java:jboss/lada-stamm</jta-data-source>
37 <properties> 36 <properties>
38 <!-- The JNDI name for lookups in the application --> 37 <!-- The JNDI name for lookups in the application -->
39 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/stamm"/> 38 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/stamm"/>
40 <!-- Properties for Hibernate --> 39 <!-- Properties for Hibernate -->
41 <property name="hibernate.show_sql" value="false" /> 40 <property name="hibernate.show_sql" value="false" />
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)