annotate src/main/resources/META-INF/persistence.xml @ 353:eefa5e465c2c

Use the hibernate spatial postgis dialect to connect to the database.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 04 Sep 2013 10:40:56 +0200
parents 069cec27c9c6
children
rev   line source
1
177351d4cca9 Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
177351d4cca9 Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
2 <persistence version="2.0"
177351d4cca9 Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
3 xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
177351d4cca9 Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
4 xsi:schemaLocation="
177351d4cca9 Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
5 http://java.sun.com/xml/ns/persistence
177351d4cca9 Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
6 http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
22
c19770952a6e DO not provide a transaction type
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 16
diff changeset
7 <persistence-unit name="primary">
31
4266530e94a8 Changed jta data source and cosmetics.
Raimund Renkert <rrenkert@intevation.de>
parents: 27
diff changeset
8 <jta-data-source>java:/jboss/Lada</jta-data-source>
4266530e94a8 Changed jta data source and cosmetics.
Raimund Renkert <rrenkert@intevation.de>
parents: 27
diff changeset
9 <class>de.intevation.lada.model.LProbe</class>
106
069cec27c9c6 Added Interface to get Netzbetreiber.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 31
diff changeset
10 <class>de.intevation.lada.model.SNetzBetreiber</class>
31
4266530e94a8 Changed jta data source and cosmetics.
Raimund Renkert <rrenkert@intevation.de>
parents: 27
diff changeset
11 <properties>
4266530e94a8 Changed jta data source and cosmetics.
Raimund Renkert <rrenkert@intevation.de>
parents: 27
diff changeset
12 <!-- Properties for Hibernate -->
4266530e94a8 Changed jta data source and cosmetics.
Raimund Renkert <rrenkert@intevation.de>
parents: 27
diff changeset
13 <property name="hibernate.show_sql" value="true" />
353
eefa5e465c2c Use the hibernate spatial postgis dialect to connect to the database.
Raimund Renkert <rrenkert@intevation.de>
parents: 106
diff changeset
14 <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.postgis.PostgisDialect"/>
31
4266530e94a8 Changed jta data source and cosmetics.
Raimund Renkert <rrenkert@intevation.de>
parents: 27
diff changeset
15 <property name="hibernate.hbm2ddl.auto" value="none"/>
1
177351d4cca9 Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 </properties>
177351d4cca9 Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 </persistence-unit>
26
47728bab8cb1 Fixed persistence.xml
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 25
diff changeset
18 </persistence>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)