geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r555467 - in /geronimo/daytrader/trunk: modules/ejb/src/main/resources/META-INF/persistence.xml plans/daytrader-g-2.0-SNAPSHOT-plan.xml
Date Thu, 12 Jul 2007 02:39:15 GMT
Author: djencks
Date: Wed Jul 11 19:39:14 2007
New Revision: 555467

URL: http://svn.apache.org/viewvc?view=rev&rev=555467
Log:
GERONIMO-3308 override a bunch of properties in persistence.xml with our plan.  This should
make it easier to run on other app servers, and with other dbs

Modified:
    geronimo/daytrader/trunk/modules/ejb/src/main/resources/META-INF/persistence.xml
    geronimo/daytrader/trunk/plans/daytrader-g-2.0-SNAPSHOT-plan.xml

Modified: geronimo/daytrader/trunk/modules/ejb/src/main/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/modules/ejb/src/main/resources/META-INF/persistence.xml?view=diff&rev=555467&r1=555466&r2=555467
==============================================================================
--- geronimo/daytrader/trunk/modules/ejb/src/main/resources/META-INF/persistence.xml (original)
+++ geronimo/daytrader/trunk/modules/ejb/src/main/resources/META-INF/persistence.xml Wed Jul
11 19:39:14 2007
@@ -19,22 +19,12 @@
 
     <persistence-unit transaction-type="JTA" 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.AccountDataBean</class>
         <class>org.apache.geronimo.samples.daytrader.AccountProfileDataBean</class>
         <class>org.apache.geronimo.samples.daytrader.HoldingDataBean</class>
         <class>org.apache.geronimo.samples.daytrader.OrderDataBean</class>
         <class>org.apache.geronimo.samples.daytrader.QuoteDataBean</class>
         <exclude-unlisted-classes>true</exclude-unlisted-classes>
-        <properties>
-            <property name="openjpa.jdbc.DBDictionary" value="org.apache.openjpa.jdbc.sql.DerbyDictionary"/>
-            <!-- property name="openjpa.jdbc.DBDictionary" value="org.apache.openjpa.jdbc.sql.DB2Dictionary"/
-->
-            <!--<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>-->
-            <!--<property name="openjpa.Sequence" value="table(Table=OPENJPASEQ, Increment=100)"/>-->
-            <!--<property name="openjpa.ConnectionDriverName" value="org.apache.derby.jdbc.EmbeddedDriver"/>-->
-        </properties>
     </persistence-unit>
 </persistence>

Modified: geronimo/daytrader/trunk/plans/daytrader-g-2.0-SNAPSHOT-plan.xml
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/plans/daytrader-g-2.0-SNAPSHOT-plan.xml?view=diff&rev=555467&r1=555466&r2=555467
==============================================================================
--- geronimo/daytrader/trunk/plans/daytrader-g-2.0-SNAPSHOT-plan.xml (original)
+++ geronimo/daytrader/trunk/plans/daytrader-g-2.0-SNAPSHOT-plan.xml Wed Jul 11 19:39:14 2007
@@ -544,6 +544,22 @@
                     </ejb-relationship-role>
                 </ejb-relation>
             </relationships>
+            <persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
+
+                <persistence-unit 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>
+                    <properties>
+                        <property name="openjpa.jdbc.DBDictionary" value="org.apache.openjpa.jdbc.sql.DerbyDictionary"/>
+                        <!-- property name="openjpa.jdbc.DBDictionary" value="org.apache.openjpa.jdbc.sql.DB2Dictionary"/
-->
+                        <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
+                        <property name="openjpa.Sequence" value="table(Table=OPENJPASEQ,
Increment=100)"/>
+                    </properties>
+                </persistence-unit>
+            </persistence>
+
         </openejb-jar>
     </module>
 



Mime
View raw message