comparison src/test/resources/META-INF/test-persistence.xml @ 1:177351d4cca9

Added files from jboss-javaee6-webapp-blank-archetype
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 18 Apr 2013 10:45:15 +0200
parents
children
comparison
equal deleted inserted replaced
0:83b0822c2aab 1:177351d4cca9
1 <?xml version="1.0" encoding="UTF-8"?>
2 <persistence version="2.0"
3 xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="
5 http://java.sun.com/xml/ns/persistence
6 http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
7 <persistence-unit name="primary">
8 <!-- We use a different datasource for tests, so as to not overwrite
9 production data. This is an unmanaged data source, backed by H2, an in memory
10 database. Production applications should use a managed datasource. -->
11 <!-- The datasource is deployed as WEB-INF/test-ds.xml,
12 you can find it in the source at src/test/resources/test-ds.xml -->
13 <jta-data-source>java:jboss/datasources/ladaTestDS</jta-data-source>
14 <properties>
15 <!-- Properties for Hibernate -->
16 <property name="hibernate.hbm2ddl.auto" value="create-drop" />
17 <property name="hibernate.show_sql" value="false" />
18 </properties>
19 </persistence-unit>
20 </persistence>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)