geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r834744 - in /geronimo/plugins/openjpa2/branches/2.1: ./ geronimo-persistence-jpa20/ geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/ geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/ openjpa...
Date Wed, 11 Nov 2009 02:31:09 GMT
Author: dwoods
Date: Wed Nov 11 02:31:09 2009
New Revision: 834744

URL: http://svn.apache.org/viewvc?rev=834744&view=rev
Log:
GERONIMO-4946 merge in plugin updates from 2.2 branch

Modified:
    geronimo/plugins/openjpa2/branches/2.1/README.txt
    geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/pom.xml
    geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/PersistenceUnitGBean.java
    geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/PersistenceUnitGBeanTest.java
    geronimo/plugins/openjpa2/branches/2.1/openjpa2/pom.xml
    geronimo/plugins/openjpa2/branches/2.1/openjpa2/src/main/history/dependencies.xml
    geronimo/plugins/openjpa2/branches/2.1/persistence-jpa20-deployer/pom.xml
    geronimo/plugins/openjpa2/branches/2.1/persistence-jpa20-deployer/src/main/history/dependencies.xml
    geronimo/plugins/openjpa2/branches/2.1/pom.xml

Modified: geronimo/plugins/openjpa2/branches/2.1/README.txt
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/README.txt?rev=834744&r1=834743&r2=834744&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/README.txt (original)
+++ geronimo/plugins/openjpa2/branches/2.1/README.txt Wed Nov 11 02:31:09 2009
@@ -29,6 +29,7 @@
 Installing -
 ------------
 Note:  Installing the OpenJPA2 plugins will replace the existing OpenJPA plugin. 
+
 Using the Admin Console -
 1) Start the server and log into the Admin Console -
     http://localhost:8080/console/
@@ -45,6 +46,31 @@
     b) Press Install
     c) On the confirmation panel, press Install
     d) Once the plugins are installed, press Done
+5) Start the following modules if they are not running -
+    a) Navigate to Applications -> System Modules
+    b) Verify the following are started and press the "Start" link if not -
+       org.apache.geronimo.configs/persistence-jpa20-deployer/<version>/car
+       org.apache.geronimo.configs/openjpa2/<version>/car
+       org.apache.geronimo.configs/openejb-deployer/<version>/car
+       org.apache.geronimo.configs/openejb/<version>/car
+6) Restart the Server, so the loaded JPA 1.0 modules can be replaced with the
+    new JPA 2.0 modules.
+
+Note:  If you need to use the Offline Deployer, then perform the following
+manual steps first -
+1) Edit the following file -
+    var/config/offline-deployer-config.xml
+2) Remove the module entry for the old JPA10 deployer
+    <module name="org.apache.geronimo.configs/persistence-jpa10-deployer//car">
+
+Note:  If you want to reinstall the same level of the OpenJPA2 plugins, you
+will need to uninstall the existing OpenJPA2 plugins and then delete the
+following directories from the server repository before reinstalling -
+    org/apache/geronimo/configs/openjpa2
+    org/apache/geronimo/configs/persistence-jpa20-deployer
+    org/apache/geronimo/modules/geronimo-openjpa2
+    org/apache/geronimo/modules/geronimo-persistence-jpa20
+    org/apache/geronimo/modules/geronimo-persistence-jpa20-builder
 
 
 Uninstalling -
@@ -60,4 +86,5 @@
        above, but by selecting the following plugins to install instead -
         Geronimo Plugins, OpenJPA :: CAR
         Geronimo Plugins, OpenJPA :: Deployer
+    c) Restart the Server
 

Modified: geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/pom.xml?rev=834744&r1=834743&r2=834744&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/pom.xml (original)
+++ geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/pom.xml Wed Nov 11 02:31:09
2009
@@ -36,7 +36,6 @@
         <!-- g-transaction, g-system come from this -->
         <dependency>
             <groupId>org.apache.geronimo.modules</groupId>
-            <!--<artifactId>geronimo-connector-1_6</artifactId>-->
             <artifactId>geronimo-connector</artifactId>
             <version>${geronimoVersion}</version>
             <scope>provided</scope>
@@ -62,7 +61,6 @@
 
         <dependency>
             <groupId>org.apache.geronimo.specs</groupId>
-            <!--<artifactId>geronimo-ejb_3.1_spec</artifactId>-->
             <artifactId>geronimo-ejb_3.0_spec</artifactId>
             <scope>provided</scope>
         </dependency>

Modified: geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/PersistenceUnitGBean.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/PersistenceUnitGBean.java?rev=834744&r1=834743&r2=834744&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/PersistenceUnitGBean.java
(original)
+++ geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/PersistenceUnitGBean.java
Wed Nov 11 02:31:09 2009
@@ -72,6 +72,9 @@
         entityManagerRegistry = null;
     }
 
+    /*
+     * Old JPA 1.0 compatiable constructor
+     */
     public PersistenceUnitGBean(String persistenceUnitName,
             String persistenceProviderClassName,
             String persistenceUnitTransactionTypeString,
@@ -86,10 +89,50 @@
             TransactionManagerImpl transactionManager,
             Collection<ExtendedEntityManagerRegistry > entityManagerRegistry,
             URL configurationBaseURL,
+            ClassLoader classLoader) throws URISyntaxException, MalformedURLException, ResourceException
{
+        this( persistenceUnitName,
+              persistenceProviderClassName,
+              persistenceUnitTransactionTypeString,
+              jtaDataSourceWrapper,
+              nonJtaDataSourceWrapper,
+              mappingFileNamesUntyped,
+              jarFileUrlsUntyped,
+              persistenceUnitRoot,
+              managedClassNames,
+              excludeUnlistedClassesValue,
+              properties,
+              transactionManager,
+              entityManagerRegistry,
+              configurationBaseURL,
+              classLoader,
+              "2.0",
+              SharedCacheMode.NONE,
+              ValidationMode.NONE);
+    }
+
+    /*
+     * New JPA 2.0 constructor with the following new parameters:
+     *     persistenceXMLSchemaVersion,sharedCacheMode validationMode
+     */
+    public PersistenceUnitGBean(String persistenceUnitName,
+            String persistenceProviderClassName,
+            String persistenceUnitTransactionTypeString,
+            ResourceSource<ResourceException> jtaDataSourceWrapper,
+            ResourceSource<ResourceException> nonJtaDataSourceWrapper,
+            List<String> mappingFileNamesUntyped,
+            List<String> jarFileUrlsUntyped,
+            String persistenceUnitRoot,
+            List<String> managedClassNames,
+            boolean excludeUnlistedClassesValue,
+            Properties properties,
+            TransactionManagerImpl transactionManager,
+            Collection<ExtendedEntityManagerRegistry > entityManagerRegistry,
+            URL configurationBaseURL,
+            ClassLoader classLoader,
             String persistenceXMLSchemaVersion,
             SharedCacheMode sharedCacheMode,
-            ValidationMode validationMode,
-            ClassLoader classLoader) throws URISyntaxException, MalformedURLException, ResourceException
{
+            ValidationMode validationMode) throws URISyntaxException, MalformedURLException,
ResourceException {
+
         List<String> mappingFileNames = mappingFileNamesUntyped == null? NO_STRINGS:
new ArrayList<String>(mappingFileNamesUntyped);
         this.persistenceUnitRoot = persistenceUnitRoot;
         URI configurationBaseURI = new File(configurationBaseURL.getFile()).toURI();
@@ -114,6 +157,14 @@
 
         if (persistenceProviderClassName == null) persistenceProviderClassName = "org.apache.openjpa.persistence.PersistenceProviderImpl";
         
+        // JPA2 attributes
+        if (persistenceXMLSchemaVersion == null)
+            persistenceXMLSchemaVersion = "2.0";
+        if (sharedCacheMode == null)
+            sharedCacheMode = SharedCacheMode.NONE;
+        if (validationMode == null)
+            validationMode = ValidationMode.NONE;
+
         persistenceUnitInfo = new PersistenceUnitInfoImpl(persistenceUnitName,
                 persistenceProviderClassName,
                 persistenceUnitTransactionType,
@@ -125,10 +176,10 @@
                 managedClassNames,
                 excludeUnlistedClassesValue,
                 properties,
+                classLoader,
                 persistenceXMLSchemaVersion,
                 sharedCacheMode,
-                validationMode,
-                classLoader);
+                validationMode);
         try {
             Class clazz = classLoader.loadClass(persistenceProviderClassName);
             PersistenceProvider persistenceProvider = (PersistenceProvider) clazz.newInstance();
@@ -236,6 +287,21 @@
         persistenceUnitInfo.destroy();
     }
 
+    /**
+     * JPA2 added methods
+     */
+    public String getPersistenceXMLSchemaVersion() {
+        return persistenceUnitInfo.getPersistenceXMLSchemaVersion();
+    }
+
+    public SharedCacheMode getSharedCacheMode() {
+        return persistenceUnitInfo.getSharedCacheMode();
+    }
+
+    public ValidationMode getValidationMode() {
+        return persistenceUnitInfo.getValidationMode();
+    }
+
     private static class PersistenceUnitInfoImpl implements PersistenceUnitInfo {
         private final String persistenceUnitName;
         private final String persistenceProviderClassName;
@@ -256,12 +322,51 @@
         private final ValidationMode validationMode;
 
 
-        public PersistenceUnitInfoImpl(String persistenceUnitName, String persistenceProviderClassName,
-                PersistenceUnitTransactionType persistenceUnitTransactionType, DataSource
jtaDataSource,
-                DataSource nonJtaDataSource, List<String> mappingFileNames, List<URL>
jarFileUrls,
-                URL persistenceUnitRootUrl, List<String> managedClassNames, boolean
excludeUnlistedClassesValue,
-                Properties properties, String persistenceXMLSchemaVersion, SharedCacheMode
sharedCacheMode,
-                ValidationMode validationMode, ClassLoader classLoader) {
+        public PersistenceUnitInfoImpl(String persistenceUnitName,
+                String persistenceProviderClassName,
+                PersistenceUnitTransactionType persistenceUnitTransactionType,
+                DataSource jtaDataSource,
+                DataSource nonJtaDataSource,
+                List<String> mappingFileNames,
+                List<URL> jarFileUrls,
+                URL persistenceUnitRootUrl,
+                List<String> managedClassNames,
+                boolean excludeUnlistedClassesValue,
+                Properties properties,
+                ClassLoader classLoader) {
+
+            this( persistenceUnitName,
+                  persistenceProviderClassName,
+                  persistenceUnitTransactionType,
+                  jtaDataSource,
+                  nonJtaDataSource,
+                  mappingFileNames,
+                  jarFileUrls,
+                  persistenceUnitRootUrl,
+                  managedClassNames,
+                  excludeUnlistedClassesValue,
+                  properties,
+                  classLoader,
+                  "2.0",
+                  SharedCacheMode.NONE,
+                  ValidationMode.NONE);
+        }
+            
+        public PersistenceUnitInfoImpl(String persistenceUnitName,
+                String persistenceProviderClassName,
+                PersistenceUnitTransactionType persistenceUnitTransactionType,
+                DataSource jtaDataSource,
+                DataSource nonJtaDataSource,
+                List<String> mappingFileNames,
+                List<URL> jarFileUrls,
+                URL persistenceUnitRootUrl,
+                List<String> managedClassNames,
+                boolean excludeUnlistedClassesValue,
+                Properties properties,
+                ClassLoader classLoader,
+                String persistenceXMLSchemaVersion,
+                SharedCacheMode sharedCacheMode,
+                ValidationMode validationMode) {
             
             this.persistenceUnitName = persistenceUnitName;
             this.persistenceProviderClassName = persistenceProviderClassName;
@@ -367,17 +472,14 @@
         /**
          * JPA2 added methods
          */
-        @Override
         public String getPersistenceXMLSchemaVersion() {
             return persistenceXMLSchemaVersion;
         }
 
-        @Override
         public SharedCacheMode getSharedCacheMode() {
             return sharedCacheMode;
         }
 
-        @Override
         public ValidationMode getValidationMode() {
             return validationMode;
         }
@@ -393,21 +495,21 @@
         infoBuilder.addAttribute("persistenceUnitName", String.class, true, true);
         infoBuilder.addAttribute("persistenceProviderClassName", String.class, true, true);
         infoBuilder.addAttribute("persistenceUnitTransactionType", String.class, true, true);
+        infoBuilder.addReference("JtaDataSourceWrapper", ResourceSource.class, NameFactory.JCA_MANAGED_CONNECTION_FACTORY);
+        infoBuilder.addReference("NonJtaDataSourceWrapper", ResourceSource.class, NameFactory.JCA_MANAGED_CONNECTION_FACTORY);
         infoBuilder.addAttribute("mappingFileNames", List.class, true, true);
         infoBuilder.addAttribute("jarFileUrls", List.class, true, true);
         infoBuilder.addAttribute("persistenceUnitRoot", String.class, true, true);
         infoBuilder.addAttribute("managedClassNames", List.class, true, true);
         infoBuilder.addAttribute("excludeUnlistedClasses", boolean.class, true, true);
         infoBuilder.addAttribute("properties", Properties.class, true, true);
+        infoBuilder.addReference("TransactionManager", TransactionManagerImpl.class, NameFactory.JTA_RESOURCE);
         infoBuilder.addAttribute("configurationBaseUrl", URL.class, true);
-
+        // new JPA2 attributes
         infoBuilder.addAttribute("persistenceXMLSchemaVersion", String.class, true, true);
         infoBuilder.addAttribute("sharedCacheMode", SharedCacheMode.class, true, true);
         infoBuilder.addAttribute("validationMode", ValidationMode.class, true, true);
 
-        infoBuilder.addReference("TransactionManager", TransactionManagerImpl.class, NameFactory.JTA_RESOURCE);
-        infoBuilder.addReference("JtaDataSourceWrapper", ResourceSource.class, NameFactory.JCA_MANAGED_CONNECTION_FACTORY);
-        infoBuilder.addReference("NonJtaDataSourceWrapper", ResourceSource.class, NameFactory.JCA_MANAGED_CONNECTION_FACTORY);
         infoBuilder.addReference("EntityManagerRegistry", ExtendedEntityManagerRegistry.class,
GBeanInfoBuilder.DEFAULT_J2EE_TYPE);
 
         infoBuilder.setConstructor(new String[] {
@@ -425,10 +527,10 @@
                 "TransactionManager",
                 "EntityManagerRegistry",
                 "configurationBaseUrl",
+                "classLoader",
                 "persistenceXMLSchemaVersion",
                 "sharedCacheMode",
-                "validationMode",
-                "classLoader"
+                "validationMode"
         });
 
         GBEAN_INFO = infoBuilder.getBeanInfo();

Modified: geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/PersistenceUnitGBeanTest.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/PersistenceUnitGBeanTest.java?rev=834744&r1=834743&r2=834744&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/PersistenceUnitGBeanTest.java
(original)
+++ geronimo/plugins/openjpa2/branches/2.1/geronimo-persistence-jpa20/src/test/java/org/apache/geronimo/persistence/PersistenceUnitGBeanTest.java
Wed Nov 11 02:31:09 2009
@@ -49,14 +49,46 @@
                 null,
                 null,
                 new File("/foo/bar/Root").toURL(),
-                "2.0",
+                getClass().getClassLoader(),
+                "1.0",
                 SharedCacheMode.NONE,
-                ValidationMode.AUTO,
-                getClass().getClassLoader());
+                ValidationMode.NONE);
+        assertNotNull(gbean.getManagedClassNames());
+        assertNotNull(gbean.getProperties());
+        assertNotNull(gbean.getJarFileUrls());
+        assertNotNull(gbean.getPersistenceUnitRootUrl());
+        assertNotNull(gbean.getPersistenceProviderClassName());
+        assertEquals(gbean.getPersistenceXMLSchemaVersion(), "1.0");
+        assertEquals(gbean.getSharedCacheMode(), SharedCacheMode.NONE);
+        assertEquals(gbean.getValidationMode(), ValidationMode.NONE);
+    }
+    
+    public void testJPA2PU() throws Exception {
+        PersistenceUnitGBean gbean = new PersistenceUnitGBean("foo",
+                null,
+                "JTA",
+                null,
+                null,
+                null,
+                null,
+                "/foo/bar/Root",
+                null,
+                true,
+                null,
+                null,
+                null,
+                new File("/foo/bar/Root").toURL(),
+                getClass().getClassLoader(),
+                "2.0",
+                SharedCacheMode.ALL,
+                ValidationMode.AUTO);
         assertNotNull(gbean.getManagedClassNames());
         assertNotNull(gbean.getProperties());
         assertNotNull(gbean.getJarFileUrls());
         assertNotNull(gbean.getPersistenceUnitRootUrl());
         assertNotNull(gbean.getPersistenceProviderClassName());
+        assertEquals(gbean.getPersistenceXMLSchemaVersion(), "2.0");
+        assertEquals(gbean.getSharedCacheMode(), SharedCacheMode.ALL);
+        assertEquals(gbean.getValidationMode(), ValidationMode.AUTO);
     }
 }

Modified: geronimo/plugins/openjpa2/branches/2.1/openjpa2/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/openjpa2/pom.xml?rev=834744&r1=834743&r2=834744&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/openjpa2/pom.xml (original)
+++ geronimo/plugins/openjpa2/branches/2.1/openjpa2/pom.xml Wed Nov 11 02:31:09 2009
@@ -48,7 +48,6 @@
 
         <dependency>
             <groupId>org.apache.geronimo.configs</groupId>
-            <!--<artifactId>transaction-1_6</artifactId>-->
             <artifactId>transaction</artifactId>
             <version>${geronimoVersion}</version>
             <type>car</type>
@@ -110,10 +109,31 @@
                                 <groupId>org.apache.geronimo.configs</groupId>
                                 <artifactId>openjpa2</artifactId>
                             </obsoletes>
+                            <!-- config.xml and offline-deployer-config.xml -->
+                            <config-xml-content server="default" />
+                            <config-xml-content server="offline" />
+                            <!-- handle openjpa to openjpa2 CAR alias -->
                             <artifact-alias key="org.apache.geronimo.configs/openjpa//car">org.apache.geronimo.configs/openjpa2/${version}/car</artifact-alias>
-                            <artifact-alias key="org.apache.geronimo.configs/openjpa/${version}/car">org.apache.geronimo.configs/openjpa2/${version}/car</artifact-alias>
                             <artifact-alias key="org.apache.geronimo.configs/openjpa/${geronimoVersion}/car">org.apache.geronimo.configs/openjpa2/${version}/car</artifact-alias>
-                            <artifact-alias key="org.apache.geronimo.configs/openjpa/2.1.5-SNAPSHOT/car">org.apache.geronimo.configs/openjpa2/${version}/car</artifact-alias>
+                            <artifact-alias server="client" key="org.apache.geronimo.configs/openjpa//car">org.apache.geronimo.configs/openjpa2/${version}/car</artifact-alias>
+                            <artifact-alias server="client" key="org.apache.geronimo.configs/openjpa/${geronimoVersion}/car">org.apache.geronimo.configs/openjpa2/${version}/car</artifact-alias>
+                            <!-- handle geronimo-jpa_3.0 to 2.0 JAR alias -->
+                            <artifact-alias key="org.apache.geronimo.specs/geronimo-jpa_3.0_spec//jar">org.apache.geronimo.specs/geronimo-jpa_2.0_spec/${jpa2specVersion}/jar</artifact-alias>
+                            <artifact-alias key="org.apache.geronimo.specs/geronimo-jpa_3.0_spec/1.1.1/jar">org.apache.geronimo.specs/geronimo-jpa_2.0_spec/${jpa2specVersion}/jar</artifact-alias>
+                            <artifact-alias server="client" key="org.apache.geronimo.specs/geronimo-jpa_3.0_spec//jar">org.apache.geronimo.specs/geronimo-jpa_2.0_spec/${jpa2specVersion}/jar</artifact-alias>
+                            <artifact-alias server="client" key="org.apache.geronimo.specs/geronimo-jpa_3.0_spec/1.1.1/jar">org.apache.geronimo.specs/geronimo-jpa_2.0_spec/${jpa2specVersion}/jar</artifact-alias>
+                            <!-- handle geronimo-jpa_1.0 to 2.0 JAR alias -->
+                            <artifact-alias key="org.apache.geronimo.specs/geronimo-jpa_1.0_spec//jar">org.apache.geronimo.specs/geronimo-jpa_2.0_spec/${jpa2specVersion}/jar</artifact-alias>
+                            <artifact-alias key="org.apache.geronimo.specs/geronimo-jpa_1.0_spec/1.1.2/jar">org.apache.geronimo.specs/geronimo-jpa_2.0_spec/${jpa2specVersion}/jar</artifact-alias>
+                            <artifact-alias server="client" key="org.apache.geronimo.specs/geronimo-jpa_1.0_spec//jar">org.apache.geronimo.specs/geronimo-jpa_2.0_spec/${jpa2specVersion}/jar</artifact-alias>
+                            <artifact-alias server="client" key="org.apache.geronimo.specs/geronimo-jpa_1.0_spec/1.1.2/jar">org.apache.geronimo.specs/geronimo-jpa_2.0_spec/${jpa2specVersion}/jar</artifact-alias>
+                            <!-- handle openjpa-1.x to 2.x JAR alias -->
+                            <artifact-alias key="org.apache.openjpa/openjpa//jar">org.apache.openjpa/openjpa/${openjpa2Version}/jar</artifact-alias>
+                            <artifact-alias key="org.apache.openjpa/openjpa/1.0.3/jar">org.apache.openjpa/openjpa/${openjpa2Version}/jar</artifact-alias>
+                            <artifact-alias key="org.apache.openjpa/openjpa/1.2.1/jar">org.apache.openjpa/openjpa/${openjpa2Version}/jar</artifact-alias>
+                            <artifact-alias server="client" key="org.apache.openjpa/openjpa//jar">org.apache.openjpa/openjpa/${openjpa2Version}/jar</artifact-alias>
+                            <artifact-alias server="client" key="org.apache.openjpa/openjpa/1.0.3/jar">org.apache.openjpa/openjpa/${openjpa2Version}/jar</artifact-alias>
+                            <artifact-alias server="client" key="org.apache.openjpa/openjpa/1.2.1/jar">org.apache.openjpa/openjpa/${openjpa2Version}/jar</artifact-alias>
                         </plugin-artifact>
                     </instance>
                 </configuration>

Modified: geronimo/plugins/openjpa2/branches/2.1/openjpa2/src/main/history/dependencies.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/openjpa2/src/main/history/dependencies.xml?rev=834744&r1=834743&r2=834744&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/openjpa2/src/main/history/dependencies.xml (original)
+++ geronimo/plugins/openjpa2/branches/2.1/openjpa2/src/main/history/dependencies.xml Wed
Nov 11 02:31:09 2009
@@ -23,7 +23,6 @@
     </dependency>
     <dependency>
         <groupId>org.apache.geronimo.configs</groupId>
-        <!--<artifactId>transaction-1_6</artifactId>-->
         <artifactId>transaction</artifactId>
         <type>car</type>
     </dependency>

Modified: geronimo/plugins/openjpa2/branches/2.1/persistence-jpa20-deployer/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/persistence-jpa20-deployer/pom.xml?rev=834744&r1=834743&r2=834744&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/persistence-jpa20-deployer/pom.xml (original)
+++ geronimo/plugins/openjpa2/branches/2.1/persistence-jpa20-deployer/pom.xml Wed Nov 11 02:31:09
2009
@@ -50,12 +50,15 @@
         </dependency>
 
         <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-jpa_2.0_spec</artifactId>
+        </dependency>
+
+        <dependency>
             <groupId>org.apache.geronimo.configs</groupId>
-            <!--<artifactId>transaction-1_6</artifactId>-->
             <artifactId>transaction</artifactId>
             <type>car</type>
             <version>${geronimoVersion}</version>
-            <scope>runtime</scope>
         </dependency>
     </dependencies>
 
@@ -70,10 +73,6 @@
                         <value>true</value>
                         <includeVersion>true</includeVersion>
                     </useMavenDependencies>
-<!--
-                    <useMavenDependencies>
-                        <value>false</value>
-                    </useMavenDependencies>
                     <dependencies>
                         <dependency>
                             <groupId>org.apache.geronimo.configs</groupId>
@@ -82,24 +81,18 @@
                             <type>car</type>
                             <import>classes</import>
                         </dependency>
-                        <dependency>
-                            <groupId>org.apache.geronimo.modules</groupId>
-                            <artifactId>geronimo-persistence-jpa20-builder</artifactId>
-                            <version>${pom.version}</version>
-                            <type>jar</type>
-                            <import>classes</import>
-                        </dependency>
-                        <dependency>
-                            <groupId>org.apache.geronimo.configs</groupId>
-                            <artifactId>j2ee-deployer</artifactId>
-                            <version>${geronimoVersion}</version>
-                            <type>car</type>
-                        </dependency>
                     </dependencies>
--->
                     <instance>
                         <plugin-artifact>
-                            <config-xml-content>
+                            <obsoletes>
+                                <groupId>org.apache.geronimo.configs</groupId>
+                                <artifactId>persistence-jpa10-deployer</artifactId>
+                            </obsoletes>
+                            <obsoletes>
+                                <groupId>org.apache.geronimo.configs</groupId>
+                                <artifactId>persistence-jpa20-deployer</artifactId>
+                            </obsoletes>
+                            <config-xml-content server="default">
                                 <gbean name="PersistenceUnitBuilder">
                                     <attribute name="defaultPersistenceProviderClassName">org.apache.openjpa.persistence.PersistenceProviderImpl</attribute>
                                     <attribute name="defaultPersistenceUnitProperties">
@@ -143,23 +136,20 @@
                                     </attribute>
                                 </gbean>
                             </config-xml-content>
-                            <obsoletes>
-                                <groupId>org.apache.geronimo.configs</groupId>
-                                <artifactId>persistence-jpa10-deployer</artifactId>
-                            </obsoletes>
-                            <obsoletes>
-                                <groupId>org.apache.geronimo.configs</groupId>
-                                <artifactId>persistence-jpa20-deployer</artifactId>
-                            </obsoletes>
+                            <!-- handle persistence-jpa10-deployer to jpa20 -->
                             <artifact-alias key="org.apache.geronimo.configs/persistence-jpa10-deployer//car">org.apache.geronimo.configs/persistence-jpa20-deployer/${version}/car</artifact-alias>
-                            <artifact-alias key="org.apache.geronimo.configs/persistence-jpa10-deployer/${version}/car">org.apache.geronimo.configs/persistence-jpa20-deployer/${version}/car</artifact-alias>
                             <artifact-alias key="org.apache.geronimo.configs/persistence-jpa10-deployer/${geronimoVersion}/car">org.apache.geronimo.configs/persistence-jpa20-deployer/${version}/car</artifact-alias>
-                            <artifact-alias key="org.apache.geronimo.configs/persistence-jpa10-deployer/2.1.5-SNAPSHOT/car">org.apache.geronimo.configs/persistence-jpa20-deployer/${version}/car</artifact-alias>
+                            <artifact-alias server="client" key="org.apache.geronimo.configs/persistence-jpa10-deployer//car">org.apache.geronimo.configs/persistence-jpa20-deployer/${version}/car</artifact-alias>
+                            <artifact-alias server="client" key="org.apache.geronimo.configs/persistence-jpa10-deployer/${geronimoVersion}/car">org.apache.geronimo.configs/persistence-jpa20-deployer/${version}/car</artifact-alias>
+                            <!-- handle geronimo-persistence-jpa10 to jpa20 -->
+                            <artifact-alias key="org.apache.geronimo.modules/geronimo-persistence-jpa10//jar">org.apache.geronimo.modules/geronimo-persistence-jpa20/${version}/jar</artifact-alias>
+                            <artifact-alias key="org.apache.geronimo.modules/geronimo-persistence-jpa10/${geronimoVersion}/jar">org.apache.geronimo.modules/geronimo-persistence-jpa20/${version}/jar</artifact-alias>
+                            <artifact-alias server="client" key="org.apache.geronimo.modules/geronimo-persistence-jpa10//jar">org.apache.geronimo.modules/geronimo-persistence-jpa20/${version}/jar</artifact-alias>
+                            <artifact-alias server="client" key="org.apache.geronimo.modules/geronimo-persistence-jpa10/${geronimoVersion}/jar">org.apache.geronimo.modules/geronimo-persistence-jpa20/${version}/jar</artifact-alias>
                         </plugin-artifact>
                     </instance>
                 </configuration>
             </plugin>
         </plugins>
     </build>
-
 </project>

Modified: geronimo/plugins/openjpa2/branches/2.1/persistence-jpa20-deployer/src/main/history/dependencies.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/persistence-jpa20-deployer/src/main/history/dependencies.xml?rev=834744&r1=834743&r2=834744&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/persistence-jpa20-deployer/src/main/history/dependencies.xml
(original)
+++ geronimo/plugins/openjpa2/branches/2.1/persistence-jpa20-deployer/src/main/history/dependencies.xml
Wed Nov 11 02:31:09 2009
@@ -27,4 +27,9 @@
         <artifactId>geronimo-persistence-jpa20</artifactId>
         <type>jar</type>
     </dependency>
+    <dependency>
+        <groupId>org.apache.geronimo.specs</groupId>
+        <artifactId>geronimo-jpa_2.0_spec</artifactId>
+        <type>jar</type>
+    </dependency>
 </plugin-artifact>

Modified: geronimo/plugins/openjpa2/branches/2.1/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/openjpa2/branches/2.1/pom.xml?rev=834744&r1=834743&r2=834744&view=diff
==============================================================================
--- geronimo/plugins/openjpa2/branches/2.1/pom.xml (original)
+++ geronimo/plugins/openjpa2/branches/2.1/pom.xml Wed Nov 11 02:31:09 2009
@@ -245,9 +245,9 @@
 
     <modules>
         <module>geronimo-openjpa2</module>
+        <module>openjpa2</module>
         <module>geronimo-persistence-jpa20</module>
         <module>geronimo-persistence-jpa20-builder</module>
-        <module>openjpa2</module>
         <module>persistence-jpa20-deployer</module>
     </modules>
 



Mime
View raw message