annotate src/main/resources/META-INF/persistence.xml @ 25:34d7ecfba8d1

Added Relation to Kommentare by using the atomatic generation from database scheme. Doesn't work as expected and so I needed to add some extra code (eg. insertable/updateable=false)
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 26 Apr 2013 19:52:21 +0200
parents c19770952a6e
children 47728bab8cb1
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">
16
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>
25
34d7ecfba8d1 Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 22
diff changeset
9 <class>de.intevation.model.LKommentarP</class>
34d7ecfba8d1 Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 22
diff changeset
10 <class>de.intevation.model.LKommentarPPK</class>
34d7ecfba8d1 Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 22
diff changeset
11 <class>de.intevation.model.LProbe</class>
34d7ecfba8d1 Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 22
diff changeset
12 <class>de.intevation.model.PProbe</class>
1
177351d4cca9 Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 <!-- 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
14 data source, the example data source is just for development and testing! -->
177351d4cca9 Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15 <properties>
177351d4cca9 Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 <!-- 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
17 <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
18 <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
19 <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
20 </properties>
177351d4cca9 Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 </persistence-unit>
177351d4cca9 Added files from jboss-javaee6-webapp-blank-archetype
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 </persistence>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)