view src/test/resources/META-INF/test-persistence.xml @ 1113:628e0da7435a

Persist errors intended to be shown to the user. The subsequent currentErrors.clear() actually deleted the errors.
author Tom Gottfried <tom@intevation.de>
date Thu, 27 Oct 2016 15:59:05 +0200
parents 186d602e031a
children
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">
   	<persistence-unit name="land">
   	    <provider>org.hibernate.ejb.HibernatePersistence</provider>
        <jta-data-source>java:jboss/lada-land</jta-data-source>
       	<exclude-unlisted-classes>false</exclude-unlisted-classes>
    	<properties>
            <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/land"/>
            <property name="hibernate.show_sql" value="false" />
            <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/>
            <property name="hibernate.hbm2ddl.auto" value="none"/>
       </properties>
    </persistence-unit>
    <persistence-unit name="stamm">
        <provider>org.hibernate.ejb.HibernatePersistence</provider>
        <jta-data-source>java:jboss/lada-stamm</jta-data-source>
        <properties>
            <property name="jboss.entity.manager.jndi.name" value="java:app/entitymanager/stamm"/>
            <property name="hibernate.show_sql" value="false" />
            <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/>
            <property name="hibernate.hbm2ddl.auto" value="none"/>
        </properties>
    </persistence-unit>
</persistence>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)