roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r504717 - in /incubator/roller/branches/roller_4.0/apps/planet: build.xml nbproject/ testdata/META-INF/ testdata/META-INF/persistence.xml testdata/persistence.xml
Date Wed, 07 Feb 2007 22:12:50 GMT
Author: snoopdave
Date: Wed Feb  7 14:12:50 2007
New Revision: 504717

URL: http://svn.apache.org/viewvc?view=rev&rev=504717
Log:
Getting tests running against JPA

Added:
    incubator/roller/branches/roller_4.0/apps/planet/testdata/META-INF/
    incubator/roller/branches/roller_4.0/apps/planet/testdata/META-INF/persistence.xml
      - copied, changed from r504622, incubator/roller/branches/roller_4.0/apps/planet/testdata/persistence.xml
Removed:
    incubator/roller/branches/roller_4.0/apps/planet/testdata/persistence.xml
Modified:
    incubator/roller/branches/roller_4.0/apps/planet/build.xml
    incubator/roller/branches/roller_4.0/apps/planet/nbproject/   (props changed)

Modified: incubator/roller/branches/roller_4.0/apps/planet/build.xml
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_4.0/apps/planet/build.xml?view=diff&rev=504717&r1=504716&r2=504717
==============================================================================
--- incubator/roller/branches/roller_4.0/apps/planet/build.xml (original)
+++ incubator/roller/branches/roller_4.0/apps/planet/build.xml Wed Feb  7 14:12:50 2007
@@ -71,6 +71,7 @@
 
         <!-- needed for JPA -->
         <include name="jpa/toplink-essentials.jar"/>
+        <include name="jpa/bcel-5.1.jar"/>
                 
         <!-- needed for ROME -->
         <include name="lib/rome-0.9.jar"/>
@@ -141,9 +142,19 @@
             <hibernate validatexml="true" version="3.0"/>
             
         </hibernatedoclet>
+        
+        <xslt basedir="${build.compile.business}/org/apache/roller/planet/pojos/" includes="*.hbm.xml"

+            destdir="${build.compile.business}/org/apache/roller/planet/pojos" 
+            style="${src}/../../../../metadata/database/HibernateToJPA.xsl">
+            <xmlcatalog>
+                <dtd publicId="-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+                    location="sandbox/jdobackend/hibernate-mapping-3.0.dtd"/>
+            </xmlcatalog>
+            <mapper type="glob" from="*.hbm.xml" to="*.orm.xml"/>
+	    </xslt>
     
     </target>
-    
+
     
     <!-- ============================================== -->
     <!-- build all code -->

Propchange: incubator/roller/branches/roller_4.0/apps/planet/nbproject/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Feb  7 14:12:50 2007
@@ -0,0 +1 @@
+private

Copied: incubator/roller/branches/roller_4.0/apps/planet/testdata/META-INF/persistence.xml
(from r504622, incubator/roller/branches/roller_4.0/apps/planet/testdata/persistence.xml)
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_4.0/apps/planet/testdata/META-INF/persistence.xml?view=diff&rev=504717&p1=incubator/roller/branches/roller_4.0/apps/planet/testdata/persistence.xml&r1=504622&p2=incubator/roller/branches/roller_4.0/apps/planet/testdata/META-INF/persistence.xml&r2=504717
==============================================================================
--- incubator/roller/branches/roller_4.0/apps/planet/testdata/persistence.xml (original)
+++ incubator/roller/branches/roller_4.0/apps/planet/testdata/META-INF/persistence.xml Wed
Feb  7 14:12:50 2007
@@ -3,10 +3,10 @@
     <persistence-unit name ="PlanetPU" transaction-type = "RESOURCE_LOCAL">
         <provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider>
 
-	<mapping-file>org/apache/roller/pojos/PlanetConfigData.orm.xml               </mapping-file>
-	<mapping-file>org/apache/roller/pojos/PlanetEntryData.orm.xml		         </mapping-file>
-	<mapping-file>org/apache/roller/pojos/PlanetGroupData.orm.xml		         </mapping-file>
-	<mapping-file>org/apache/roller/pojos/PlanetSubscriptionData.orm.xml	     </mapping-file>
+	<mapping-file>org/apache/roller/planet/pojos/PlanetConfigData.orm.xml</mapping-file>
+	<mapping-file>org/apache/roller/planet/pojos/PlanetEntryData.orm.xml</mapping-file>
+	<mapping-file>org/apache/roller/planet/pojos/PlanetGroupData.orm.xml</mapping-file>
+	<mapping-file>org/apache/roller/planet/pojos/PlanetSubscriptionData.orm.xml</mapping-file>
 
     </persistence-unit>
     



Mime
View raw message