openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r823328 - /openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java
Date Thu, 08 Oct 2009 21:17:47 GMT
Author: ppoddar
Date: Thu Oct  8 21:17:47 2009
New Revision: 823328

URL: http://svn.apache.org/viewvc?rev=823328&view=rev
Log:
Recognize javax.persistence as a valid property prefix

Modified:
    openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java

Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java?rev=823328&r1=823327&r2=823328&view=diff
==============================================================================
--- openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java
(original)
+++ openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java
Thu Oct  8 21:17:47 2009
@@ -777,8 +777,8 @@
      * Issue a warning that the specified property is not valid.
      */
     private void warnInvalidProperty(String propName) {
-        if (propName != null && propName.startsWith("java.") 
-            || propName.startsWith("sun.")) 
+        if (propName != null && 
+           (propName.startsWith("java.") || propName.startsWith("javax.persistence")|| propName.startsWith("sun.")))

             return;
         if (!isInvalidProperty(propName))
             return;



Mime
View raw message