Mercurial > lada > lada-server
annotate src/main/resources/META-INF/persistence.xml @ 20:7a9e22e7e8af
Change return type to JSON
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 26 Apr 2013 14:06:51 +0200 |
parents | 823a417cb8e5 |
children | c19770952a6e |
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"> |
16
823a417cb8e5
Configured which datasource to use in the project. The datasource is
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
7 <persistence-unit name="primary" transaction-type="JTA"> |
823a417cb8e5
Configured which datasource to use in the project. The datasource is
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
8 <jta-data-source>java:/jboss/postgresql</jta-data-source> |
1
177351d4cca9
Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
9 <!-- If you are running in a production environment, add a managed |
177351d4cca9
Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
10 data source, the example data source is just for development and testing! --> |
13
246998056e9b
While autogenerating the model in the last commit, the persistence file was
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
1
diff
changeset
|
11 <class>de.intevation.model.LProbe</class> |
1
177351d4cca9
Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 <properties> |
177351d4cca9
Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 <!-- Properties for Hibernate --> |
16
823a417cb8e5
Configured which datasource to use in the project. The datasource is
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
14 <property name="hibernate.show_sql" value="true" /> |
823a417cb8e5
Configured which datasource to use in the project. The datasource is
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
15 <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/> |
823a417cb8e5
Configured which datasource to use in the project. The datasource is
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
16 <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
|
17 </properties> |
177351d4cca9
Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 </persistence-unit> |
177351d4cca9
Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 </persistence> |