Mercurial > lada > lada-server
comparison src/main/resources/META-INF/persistence.xml @ 16:823a417cb8e5
Configured which datasource to use in the project. The datasource is
configured as datasource in JBoss.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 26 Apr 2013 13:13:20 +0200 |
parents | 246998056e9b |
children | c19770952a6e |
comparison
equal
deleted
inserted
replaced
15:624611a29348 | 16:823a417cb8e5 |
---|---|
2 <persistence version="2.0" | 2 <persistence version="2.0" |
3 xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 3 xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 xsi:schemaLocation=" | 4 xsi:schemaLocation=" |
5 http://java.sun.com/xml/ns/persistence | 5 http://java.sun.com/xml/ns/persistence |
6 http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> | 6 http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> |
7 <persistence-unit name="primary"> | 7 <persistence-unit name="primary" transaction-type="JTA"> |
8 <jta-data-source>java:/jboss/postgresql</jta-data-source> | |
8 <!-- If you are running in a production environment, add a managed | 9 <!-- If you are running in a production environment, add a managed |
9 data source, the example data source is just for development and testing! --> | 10 data source, the example data source is just for development and testing! --> |
10 <jta-data-source>java:jboss/datasources/ladaDS</jta-data-source> | |
11 <class>de.intevation.model.LProbe</class> | 11 <class>de.intevation.model.LProbe</class> |
12 <properties> | 12 <properties> |
13 <!-- Properties for Hibernate --> | 13 <!-- Properties for Hibernate --> |
14 <property name="hibernate.hbm2ddl.auto" value="create-drop" /> | 14 <property name="hibernate.show_sql" value="true" /> |
15 <property name="hibernate.show_sql" value="false" /> | 15 <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/> |
16 <property name="hibernate.hbm2ddl.auto" value="none"/> | |
16 </properties> | 17 </properties> |
17 </persistence-unit> | 18 </persistence-unit> |
18 </persistence> | 19 </persistence> |