You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by dw...@apache.org on 2010/01/26 22:04:08 UTC
svn commit: r903416 -
/geronimo/daytrader/trunk/modules/ejb3/src/main/resources/META-INF/persistence.xml
Author: dwoods
Date: Tue Jan 26 21:04:07 2010
New Revision: 903416
URL: http://svn.apache.org/viewvc?rev=903416&view=rev
Log:
DAYTRADER-70 need a copy of persistence.xml in ejb3 as pointed out by Forrest Xia.
Added:
geronimo/daytrader/trunk/modules/ejb3/src/main/resources/META-INF/persistence.xml (with props)
Added: geronimo/daytrader/trunk/modules/ejb3/src/main/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/modules/ejb3/src/main/resources/META-INF/persistence.xml?rev=903416&view=auto
==============================================================================
--- geronimo/daytrader/trunk/modules/ejb3/src/main/resources/META-INF/persistence.xml (added)
+++ geronimo/daytrader/trunk/modules/ejb3/src/main/resources/META-INF/persistence.xml Tue Jan 26 21:04:07 2010
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
+
+ <persistence-unit transaction-type="RESOURCE_LOCAL" name="daytrader">
+ <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+ <jta-data-source>jdbc/TradeDataSource</jta-data-source>
+ <non-jta-data-source>jdbc/NoTxTradeDataSource</non-jta-data-source>
+
+ <class>org.apache.geronimo.samples.daytrader.beans.AccountDataBean</class>
+ <class>org.apache.geronimo.samples.daytrader.beans.AccountProfileDataBean</class>
+ <class>org.apache.geronimo.samples.daytrader.beans.HoldingDataBean</class>
+ <class>org.apache.geronimo.samples.daytrader.beans.OrderDataBean</class>
+ <class>org.apache.geronimo.samples.daytrader.beans.QuoteDataBean</class>
+ <exclude-unlisted-classes>true</exclude-unlisted-classes>
+
+ <properties>
+ <property name="openjpa.jdbc.DBDictionary" value="derby" />
+ <property name="openjpa.BrokerImpl" value="non-finalizing" />
+ <!-- To enable OpenJPA to generate foreign key constraints, comment out this line -->
+ <!-- <property name="openjpa.jdbc.MappingDefaults" value="ForeignKeyDeleteAction=restrict,JoinForeignKeyDeleteAction=restrict"/> -->
+ <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
+ <property name="openjpa.Sequence" value="table(Table=OPENJPASEQ, Increment=100)"/>
+ <property name="openjpa.jdbc.UpdateManager" value="org.apache.openjpa.jdbc.kernel.OperationOrderUpdateManager(batchLimit=0)" />
+ <!-- <property name="openjpa.ConnectionDriverName" value="org.apache.commons.dbcp.BasicDataSource"/> -->
+ <property name="openjpa.ConnectionDriverName" value="org.apache.derby.jdbc.EmbeddedDriver"/>
+ <property name="openjpa.ConnectionURL" value="jdbc:derby:tradedb;create=true"/>
+ <!-- <property name="openjpa.ConnectionProperties" value="DriverClassName=org.apache.derby.jdbc.EmbeddedDriver,Url=jdbc:derby:tradedb;create=true,MaxActive=50,MaxWait=10000,Username=,Password="/> -->
+ </properties>
+ </persistence-unit>
+</persistence>
Propchange: geronimo/daytrader/trunk/modules/ejb3/src/main/resources/META-INF/persistence.xml
------------------------------------------------------------------------------
svn:eol-style = native