comparison 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
comparison
equal deleted inserted replaced
24:dc3bfcc5f717 25:34d7ecfba8d1
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">
8 <jta-data-source>java:/jboss/postgresql</jta-data-source> 8 <jta-data-source>java:/jboss/postgresql</jta-data-source>
9 <class>de.intevation.model.LKommentarP</class>
10 <class>de.intevation.model.LKommentarPPK</class>
11 <class>de.intevation.model.LProbe</class>
12 <class>de.intevation.model.PProbe</class>
9 <!-- If you are running in a production environment, add a managed 13 <!-- If you are running in a production environment, add a managed
10 data source, the example data source is just for development and testing! --> 14 data source, the example data source is just for development and testing! -->
11 <class>de.intevation.model.LProbe</class>
12 <properties> 15 <properties>
13 <!-- Properties for Hibernate --> 16 <!-- Properties for Hibernate -->
14 <property name="hibernate.show_sql" value="true" /> 17 <property name="hibernate.show_sql" value="true" />
15 <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/> 18 <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
16 <property name="hibernate.hbm2ddl.auto" value="none"/> 19 <property name="hibernate.hbm2ddl.auto" value="none"/>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)