openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r944121 - in /openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF: ./ persistence.xml
Date Fri, 14 May 2010 05:47:05 GMT
Author: ppoddar
Date: Fri May 14 05:47:04 2010
New Revision: 944121

URL: http://svn.apache.org/viewvc?rev=944121&view=rev
Log: (empty)

Added:
    openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF/
    openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.xml 
 (with props)

Added: openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.xml?rev=944121&view=auto
==============================================================================
--- openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.xml (added)
+++ openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.xml Fri
May 14 05:47:04 2010
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    version="1.0">
+    <persistence-unit name="OpenBooks">
+    	<class>openbook.domain.Book</class>
+    	<class>openbook.domain.Inventory</class>
+    	<class>openbook.domain.PurchaseOrder</class>
+    	<class>openbook.domain.LineItem</class>
+    	<class>openbook.domain.Customer</class>
+    	<class>openbook.domain.Author</class>
+    	
+    	<properties>
+    		<property name="javax.persistence.jdbc.driver"   value="com.mysql.jdbc.Driver"/>
+    		<property name="javax.persistence.jdbc.url"      value="jdbc:mysql://localhost/OpenBooks"/>
+    		<property name="javax.persistence.jdbc.user"     value="scott"/>
+    		<property name="javax.persistence.jdbc.password" value="tiger"/>
+    		
+
+            <property name="openjpa.DataCache"                value="true"/> 		
+            <property name="openjpa.RemoteCommitProvider"     value="sjvm"/>
+            <property name="openjpa.InitializeEagerly"        value="true"/>
+    		
+    		<property name="openjpa.DynamicEnhancementAgent"  value="false"/>
+    		<property name="openjpa.RuntimeUnenhancedClasses" value="unsupported"/>
+    		
+            <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
+    		<property name="openjpa.jdbc.JDBCListeners"       value="openbook.client.SQLLogger"/>
+    		<property name="openjpa.jdbc.QuerySQLCache"       value="true(EnableStatistics=true)"/>
+    		
+    	</properties>
+    </persistence-unit>
+    
+</persistence>
\ No newline at end of file

Propchange: openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message