comparison src/main/resources/META-INF/persistence.xml @ 691:46bb231ff9b9

Documentation.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 07 Jul 2015 11:56:36 +0200
parents e6564d5fdc7a
children 8249a76a1f6d
comparison
equal deleted inserted replaced
690:6441bb4a90f0 691:46bb231ff9b9
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. -->
5 <persistence-unit name="bund"> 6 <persistence-unit name="bund">
7 <!-- The JTA datasource configured in the Wildfly AS -->
6 <jta-data-source>java:/jboss/lada-bund</jta-data-source> 8 <jta-data-source>java:/jboss/lada-bund</jta-data-source>
7 <exclude-unlisted-classes>false</exclude-unlisted-classes> 9 <exclude-unlisted-classes>false</exclude-unlisted-classes>
8 <properties> 10 <properties>
11 <!-- The JNDI name for lookups in the application -->
9 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/bund"/> 12 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/bund"/>
10 <!-- Properties for Hibernate --> 13 <!-- Properties for Hibernate -->
14 <property name="hibernate.hbm2ddl.auto" value="none"/>
11 <property name="hibernate.show_sql" value="false" /> 15 <property name="hibernate.show_sql" value="false" />
16 <!-- Use a special PostGIS dialect implmented for Lada. This dialect implements an additional integer array type -->
12 <property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgisDialect"/> 17 <property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgisDialect"/>
13 <property name="hibernate.hbm2ddl.auto" value="none"/>
14 </properties> 18 </properties>
15 </persistence-unit> 19 </persistence-unit>
16 <persistence-unit name="land"> 20 <persistence-unit name="land">
21 <!-- The JTA datasource configured in the Wildfly AS -->
17 <jta-data-source>java:/jboss/lada-land</jta-data-source> 22 <jta-data-source>java:/jboss/lada-land</jta-data-source>
18 <exclude-unlisted-classes>false</exclude-unlisted-classes> 23 <exclude-unlisted-classes>false</exclude-unlisted-classes>
19 <properties> 24 <properties>
25 <!-- The JNDI name for lookups in the application -->
20 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/land"/> 26 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/land"/>
27 <!-- Properties for Hibernate -->
28 <property name="hibernate.hbm2ddl.auto" value="none"/>
21 <property name="hibernate.show_sql" value="true" /> 29 <property name="hibernate.show_sql" value="true" />
30 <!-- Use a special PostGIS dialect implmented for Lada. This dialect implements an additional integer array type -->
22 <property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgisDialect"/> 31 <property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgisDialect"/>
23 <property name="hibernate.hbm2ddl.auto" value="none"/>
24 </properties> 32 </properties>
25 </persistence-unit> 33 </persistence-unit>
26 <persistence-unit name="stamm"> 34 <persistence-unit name="stamm">
35 <!-- The JTA datasource configured in the Wildfly AS -->
27 <jta-data-source>java:/jboss/lada-stamm</jta-data-source> 36 <jta-data-source>java:/jboss/lada-stamm</jta-data-source>
28 <properties> 37 <properties>
38 <!-- The JNDI name for lookups in the application -->
29 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/stamm"/> 39 <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/stamm"/>
30 <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/> 40 <!-- Properties for Hibernate -->
31 <property name="hibernate.show_sql" value="true" /> 41 <property name="hibernate.show_sql" value="true" />
32 <property name="hibernate.hbm2ddl.auto" value="none"/> 42 <property name="hibernate.hbm2ddl.auto" value="none"/>
43 <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/>
33 </properties> 44 </properties>
34 </persistence-unit> 45 </persistence-unit>
35 </persistence> 46 </persistence>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)