openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r618537 - in /openjpa/trunk/openjpa-kernel/src/main: java/org/apache/openjpa/kernel/ java/org/apache/openjpa/meta/ resources/org/apache/openjpa/kernel/
Date Tue, 05 Feb 2008 04:34:55 GMT
Author: pcl
Date: Mon Feb  4 20:34:54 2008
New Revision: 618537

URL: http://svn.apache.org/viewvc?rev=618537&view=rev
Log:
OPENJPA-147. Changes resulting from tests via Kodo's harness.

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/AbstractMetaDataDefaults.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/ClassMetaData.java
    openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/kernel/localizer.properties

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java?rev=618537&r1=618536&r2=618537&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java (original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java Mon
Feb  4 20:34:54 2008
@@ -4160,6 +4160,12 @@
             } catch (Throwable t) {
             }
         }
+
+        if (_conf.getMetaDataRepositoryInstance().getMetaData(cls,
+            getClassLoader(), false) == null)
+            throw new IllegalArgumentException(
+                _loc.get("no-interface-metadata", cls.getName()).getMessage());
+
         try {
             return PCRegistry.newInstance(cls, null, false);
         } catch (IllegalStateException ise) {

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/AbstractMetaDataDefaults.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/AbstractMetaDataDefaults.java?rev=618537&r1=618536&r2=618537&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/AbstractMetaDataDefaults.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/AbstractMetaDataDefaults.java
Mon Feb  4 20:34:54 2008
@@ -269,7 +269,7 @@
      * Returns ACCESS_FIELD by default.
      */
     protected int getAccessType(ClassMetaData meta) {
-        return ClassMetaData.ACCESS_FIELD;
+            return ClassMetaData.ACCESS_FIELD;
     }
 
     /**

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/ClassMetaData.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/ClassMetaData.java?rev=618537&r1=618536&r2=618537&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/ClassMetaData.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/ClassMetaData.java
Mon Feb  4 20:34:54 2008
@@ -737,6 +737,9 @@
         // the implementations.
         if (isManagedInterface())
             setIntercepting(true);
+
+        // managed interfaces always use property access.
+        setAccessType(ACCESS_PROPERTY);
     }
 
     /**

Modified: openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/kernel/localizer.properties
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/kernel/localizer.properties?rev=618537&r1=618536&r2=618537&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/kernel/localizer.properties
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/kernel/localizer.properties
Mon Feb  4 20:34:54 2008
@@ -396,3 +396,4 @@
     an active datastore (pessimistic) transaction.
 cant-serialize-connected-broker: Serialization not allowed for brokers with \
     an active connection to the database.
+no-interface-metadata: No metadata was found for managed interface {0}.
\ No newline at end of file



Mime
View raw message