view src/main/resources/META-INF/persistence.xml @ 724:dd67bb1930ff

Added tag 2.1.1 for changeset 9ff0882d73d8
author Dustin Demuth <dustin@intevation.de>
date Fri, 14 Aug 2015 10:33:58 +0200
parents 46bb231ff9b9
children 8249a76a1f6d
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1"
   xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
    <!-- PU for bund datasource. Maps to the schema 'bund' in the Lada database. -->
    <persistence-unit name="bund">
        <!-- The JTA datasource configured in the Wildfly AS -->
        <jta-data-source>java:/jboss/lada-bund</jta-data-source>
        <exclude-unlisted-classes>false</exclude-unlisted-classes>
        <properties>
        	<!-- The JNDI name for lookups in the application -->
            <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/bund"/>
            <!-- Properties for Hibernate -->
            <property name="hibernate.hbm2ddl.auto" value="none"/>
            <property name="hibernate.show_sql" value="false" />
            <!-- Use a special PostGIS dialect implmented for Lada. This dialect implements an additional integer array type -->
            <property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgisDialect"/>
       </properties>
   	</persistence-unit>
   	<persistence-unit name="land">
        <!-- The JTA datasource configured in the Wildfly AS -->
   	    <jta-data-source>java:/jboss/lada-land</jta-data-source>
       	<exclude-unlisted-classes>false</exclude-unlisted-classes>
    	<properties>
        	<!-- The JNDI name for lookups in the application -->
            <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/land"/>
            <!-- Properties for Hibernate -->
            <property name="hibernate.hbm2ddl.auto" value="none"/>
            <property name="hibernate.show_sql" value="true" />
            <!-- Use a special PostGIS dialect implmented for Lada. This dialect implements an additional integer array type -->
			<property name="hibernate.dialect" value="de.intevation.lada.util.data.LadaPostgisDialect"/>
       </properties>
    </persistence-unit>
    <persistence-unit name="stamm">
        <!-- The JTA datasource configured in the Wildfly AS -->
        <jta-data-source>java:/jboss/lada-stamm</jta-data-source>
        <properties>
        	<!-- The JNDI name for lookups in the application -->
            <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/stamm"/>
            <!-- Properties for Hibernate -->
            <property name="hibernate.show_sql" value="true" />
            <property name="hibernate.hbm2ddl.auto" value="none"/>
			<property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/>
        </properties>
    </persistence-unit>
</persistence>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)