You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by ti...@apache.org on 2010/01/14 10:29:10 UTC
svn commit: r899131 [2/2] - in /incubator/aries/trunk/jpa/jpa-container/src:
main/java/org/apache/aries/jpa/container/impl/
test/java/org/apache/aries/jpa/container/
test/java/org/apache/aries/jpa/container/util/
test/resources/file10/META-INF/ test/re...
Added: incubator/aries/trunk/jpa/jpa-container/src/test/java/org/apache/aries/jpa/container/util/FakeManagedPersistenceUnitFactory.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container/src/test/java/org/apache/aries/jpa/container/util/FakeManagedPersistenceUnitFactory.java?rev=899131&view=auto
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container/src/test/java/org/apache/aries/jpa/container/util/FakeManagedPersistenceUnitFactory.java (added)
+++ incubator/aries/trunk/jpa/jpa-container/src/test/java/org/apache/aries/jpa/container/util/FakeManagedPersistenceUnitFactory.java Thu Jan 14 09:29:09 2010
@@ -0,0 +1,18 @@
+package org.apache.aries.jpa.container.util;
+
+import org.apache.aries.jpa.container.ManagedPersistenceUnitInfoFactory;
+import org.apache.aries.jpa.container.unit.impl.ManagedPersistenceUnitInfoFactoryImpl;
+
+public class FakeManagedPersistenceUnitFactory extends
+ ManagedPersistenceUnitInfoFactoryImpl implements
+ ManagedPersistenceUnitInfoFactory {
+
+ @Override
+ public String getDefaultProviderClassName() {
+ // TODO Auto-generated method stub
+ return "use.this.Provider";
+ }
+
+
+
+}
Modified: incubator/aries/trunk/jpa/jpa-container/src/test/resources/file10/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container/src/test/resources/file10/META-INF/persistence.xml?rev=899131&r1=899130&r2=899131&view=diff
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container/src/test/resources/file10/META-INF/persistence.xml (original)
+++ incubator/aries/trunk/jpa/jpa-container/src/test/resources/file10/META-INF/persistence.xml Thu Jan 14 09:29:09 2010
@@ -7,7 +7,7 @@
<persistence-unit name="alpha">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[1.0.0,1.0.1]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[1.0.0,1.0.1]"/>
</properties>
</persistence-unit>
Modified: incubator/aries/trunk/jpa/jpa-container/src/test/resources/file11/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container/src/test/resources/file11/META-INF/persistence.xml?rev=899131&r1=899130&r2=899131&view=diff
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container/src/test/resources/file11/META-INF/persistence.xml (original)
+++ incubator/aries/trunk/jpa/jpa-container/src/test/resources/file11/META-INF/persistence.xml Thu Jan 14 09:29:09 2010
@@ -7,7 +7,7 @@
<persistence-unit name="alpha">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="(1.0.0,1.1.0)"/>
+ <property name="org.apache.aries.jpa.provider.version" value="(1.0.0,1.1.0)"/>
</properties>
</persistence-unit>
Modified: incubator/aries/trunk/jpa/jpa-container/src/test/resources/file12/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container/src/test/resources/file12/META-INF/persistence.xml?rev=899131&r1=899130&r2=899131&view=diff
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container/src/test/resources/file12/META-INF/persistence.xml (original)
+++ incubator/aries/trunk/jpa/jpa-container/src/test/resources/file12/META-INF/persistence.xml Thu Jan 14 09:29:09 2010
@@ -7,7 +7,7 @@
<persistence-unit name="alpha">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="1.0.0"/>
+ <property name="org.apache.aries.jpa.provider.version" value="1.0.0"/>
</properties>
</persistence-unit>
Modified: incubator/aries/trunk/jpa/jpa-container/src/test/resources/file13/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container/src/test/resources/file13/META-INF/persistence.xml?rev=899131&r1=899130&r2=899131&view=diff
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container/src/test/resources/file13/META-INF/persistence.xml (original)
+++ incubator/aries/trunk/jpa/jpa-container/src/test/resources/file13/META-INF/persistence.xml Thu Jan 14 09:29:09 2010
@@ -7,7 +7,7 @@
<persistence-unit name="alpha">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="(1.1.1,1.3.5)"/>
+ <property name="org.apache.aries.jpa.provider.version" value="(1.1.1,1.3.5)"/>
</properties>
</persistence-unit>
Modified: incubator/aries/trunk/jpa/jpa-container/src/test/resources/file14/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container/src/test/resources/file14/META-INF/persistence.xml?rev=899131&r1=899130&r2=899131&view=diff
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container/src/test/resources/file14/META-INF/persistence.xml (original)
+++ incubator/aries/trunk/jpa/jpa-container/src/test/resources/file14/META-INF/persistence.xml Thu Jan 14 09:29:09 2010
@@ -7,14 +7,14 @@
<persistence-unit name="alpha">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[1.0.0,2.0.0]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[1.0.0,2.0.0]"/>
</properties>
</persistence-unit>
<persistence-unit name="bravo">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[0.0.5,1.0.1]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[0.0.5,1.0.1]"/>
</properties>
</persistence-unit>
Modified: incubator/aries/trunk/jpa/jpa-container/src/test/resources/file15/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container/src/test/resources/file15/META-INF/persistence.xml?rev=899131&r1=899130&r2=899131&view=diff
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container/src/test/resources/file15/META-INF/persistence.xml (original)
+++ incubator/aries/trunk/jpa/jpa-container/src/test/resources/file15/META-INF/persistence.xml Thu Jan 14 09:29:09 2010
@@ -7,14 +7,14 @@
<persistence-unit name="alpha">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[1.0.0,2.0.0]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[1.0.0,2.0.0]"/>
</properties>
</persistence-unit>
<persistence-unit name="bravo">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[0.0.5,0.9.9]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[0.0.5,0.9.9]"/>
</properties>
</persistence-unit>
Modified: incubator/aries/trunk/jpa/jpa-container/src/test/resources/file16/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container/src/test/resources/file16/META-INF/persistence.xml?rev=899131&r1=899130&r2=899131&view=diff
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container/src/test/resources/file16/META-INF/persistence.xml (original)
+++ incubator/aries/trunk/jpa/jpa-container/src/test/resources/file16/META-INF/persistence.xml Thu Jan 14 09:29:09 2010
@@ -7,21 +7,21 @@
<persistence-unit name="alpha">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[1.0.0,2.0.0]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[1.0.0,2.0.0]"/>
</properties>
</persistence-unit>
<persistence-unit name="bravo">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[0.0.5,0.9.9]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[0.0.5,1.0.0)"/>
</properties>
</persistence-unit>
<persistence-unit name="ch">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[1.0.0,1.9.9]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[1.0.0,1.9.9]"/>
</properties>
</persistence-unit>
Modified: incubator/aries/trunk/jpa/jpa-container/src/test/resources/file17/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container/src/test/resources/file17/META-INF/persistence.xml?rev=899131&r1=899130&r2=899131&view=diff
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container/src/test/resources/file17/META-INF/persistence.xml (original)
+++ incubator/aries/trunk/jpa/jpa-container/src/test/resources/file17/META-INF/persistence.xml Thu Jan 14 09:29:09 2010
@@ -7,14 +7,14 @@
<persistence-unit name="alpha">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[1.0.0,1.0.1]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[1.0.0,1.0.1]"/>
</properties>
</persistence-unit>
<persistence-unit name="bravo">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[1.1.0,1.1.1]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[1.1.0,1.1.1]"/>
</properties>
</persistence-unit>
Modified: incubator/aries/trunk/jpa/jpa-container/src/test/resources/file18/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container/src/test/resources/file18/META-INF/persistence.xml?rev=899131&r1=899130&r2=899131&view=diff
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container/src/test/resources/file18/META-INF/persistence.xml (original)
+++ incubator/aries/trunk/jpa/jpa-container/src/test/resources/file18/META-INF/persistence.xml Thu Jan 14 09:29:09 2010
@@ -7,14 +7,14 @@
<persistence-unit name="alpha">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[0.0.0,0.0.1]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[0.0.0,0.0.1]"/>
</properties>
</persistence-unit>
<persistence-unit name="bravo">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[1.1.0,1.1.1]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[1.1.0,1.1.1]"/>
</properties>
</persistence-unit>
Modified: incubator/aries/trunk/jpa/jpa-container/src/test/resources/file19/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container/src/test/resources/file19/META-INF/persistence.xml?rev=899131&r1=899130&r2=899131&view=diff
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container/src/test/resources/file19/META-INF/persistence.xml (original)
+++ incubator/aries/trunk/jpa/jpa-container/src/test/resources/file19/META-INF/persistence.xml Thu Jan 14 09:29:09 2010
@@ -7,21 +7,21 @@
<persistence-unit name="alpha">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[0.0.0,0.0.1]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[0.0.0,0.0.1]"/>
</properties>
</persistence-unit>
<persistence-unit name="bravo">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[1.1.0,1.1.1]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[1.1.0,1.1.1]"/>
</properties>
</persistence-unit>
<persistence-unit name="charlie">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[0.0.0,0.6.1]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[0.0.0,0.6.1]"/>
</properties>
</persistence-unit>
</persistence>
\ No newline at end of file
Modified: incubator/aries/trunk/jpa/jpa-container/src/test/resources/file20/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container/src/test/resources/file20/META-INF/persistence.xml?rev=899131&r1=899130&r2=899131&view=diff
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container/src/test/resources/file20/META-INF/persistence.xml (original)
+++ incubator/aries/trunk/jpa/jpa-container/src/test/resources/file20/META-INF/persistence.xml Thu Jan 14 09:29:09 2010
@@ -7,21 +7,21 @@
<persistence-unit name="alpha">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[1.0.0,1.1.1]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[1.0.0,1.1.1]"/>
</properties>
</persistence-unit>
<persistence-unit name="bravo">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[0.0.0,0.0.1]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[0.0.0,0.0.1]"/>
</properties>
</persistence-unit>
<persistence-unit name="charlie">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[1.1.0,1.1.1]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[1.1.0,1.1.1]"/>
</properties>
</persistence-unit>
Added: incubator/aries/trunk/jpa/jpa-container/src/test/resources/file21/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container/src/test/resources/file21/META-INF/persistence.xml?rev=899131&view=auto
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container/src/test/resources/file21/META-INF/persistence.xml (added)
+++ incubator/aries/trunk/jpa/jpa-container/src/test/resources/file21/META-INF/persistence.xml Thu Jan 14 09:29:09 2010
@@ -0,0 +1,8 @@
+<?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"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+ version="1.0">
+
+ <persistence-unit name="persistence"/>
+</persistence>
\ No newline at end of file
Added: incubator/aries/trunk/jpa/jpa-container/src/test/resources/file21/OSGI-INF/found.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container/src/test/resources/file21/OSGI-INF/found.xml?rev=899131&view=auto
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container/src/test/resources/file21/OSGI-INF/found.xml (added)
+++ incubator/aries/trunk/jpa/jpa-container/src/test/resources/file21/OSGI-INF/found.xml Thu Jan 14 09:29:09 2010
@@ -0,0 +1,9 @@
+<?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"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+ version="1.0">
+
+ <persistence-unit name="found"/>
+
+</persistence>
\ No newline at end of file
Added: incubator/aries/trunk/jpa/jpa-container/src/test/resources/file21/OSGI-INF/not-found.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container/src/test/resources/file21/OSGI-INF/not-found.xml?rev=899131&view=auto
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container/src/test/resources/file21/OSGI-INF/not-found.xml (added)
+++ incubator/aries/trunk/jpa/jpa-container/src/test/resources/file21/OSGI-INF/not-found.xml Thu Jan 14 09:29:09 2010
@@ -0,0 +1,9 @@
+<?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"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+ version="1.0">
+
+ <persistence-unit name="not-found"/>
+
+</persistence>
\ No newline at end of file
Added: incubator/aries/trunk/jpa/jpa-container/src/test/resources/file21/persistence/another.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container/src/test/resources/file21/persistence/another.xml?rev=899131&view=auto
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container/src/test/resources/file21/persistence/another.xml (added)
+++ incubator/aries/trunk/jpa/jpa-container/src/test/resources/file21/persistence/another.xml Thu Jan 14 09:29:09 2010
@@ -0,0 +1,9 @@
+<?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"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+ version="1.0">
+
+ <persistence-unit name="another"/>
+
+</persistence>
\ No newline at end of file
Modified: incubator/aries/trunk/jpa/jpa-container/src/test/resources/file9/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container/src/test/resources/file9/META-INF/persistence.xml?rev=899131&r1=899130&r2=899131&view=diff
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container/src/test/resources/file9/META-INF/persistence.xml (original)
+++ incubator/aries/trunk/jpa/jpa-container/src/test/resources/file9/META-INF/persistence.xml Thu Jan 14 09:29:09 2010
@@ -7,7 +7,7 @@
<persistence-unit name="alpha">
<provider>no.such.Provider</provider>
<properties>
- <property name="osgi.jpa.provider.version" value="[1.0.0,1.0.0]"/>
+ <property name="org.apache.aries.jpa.provider.version" value="[1.0.0,1.0.0]"/>
</properties>
</persistence-unit>