openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r908071 - in /openjpa/trunk/openjpa-persistence/src/main: java/org/apache/openjpa/persistence/EntityManagerImpl.java resources/org/apache/openjpa/persistence/localizer.properties
Date Tue, 09 Feb 2010 15:23:17 GMT
Author: dwoods
Date: Tue Feb  9 15:23:16 2010
New Revision: 908071

URL: http://svn.apache.org/viewvc?rev=908071&view=rev
Log:
OPENJPA-1502 Improve WARN msg for unrecognized EntityManager properties

Modified:
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
    openjpa/trunk/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/localizer.properties

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java?rev=908071&r1=908070&r2=908071&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
Tue Feb  9 15:23:16 2010
@@ -1690,7 +1690,7 @@
             if (!setKernelProperty(this.getFetchPlan(), prop, value)) {
                 Log log = getConfiguration().getLog(OpenJPAConfiguration.LOG_RUNTIME);
                 if (log.isWarnEnabled()) {
-                    log.warn(_loc.get("bad-em-prop", prop, value == null ? "" : value.getClass()+":"
+ value));
+                    log.warn(_loc.get("ignored-em-prop", prop, value == null ? "" : value.getClass()+":"
+ value));
                  }
             }
         }

Modified: openjpa/trunk/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/localizer.properties
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/localizer.properties?rev=908071&r1=908070&r2=908071&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/localizer.properties
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/localizer.properties
Tue Feb  9 15:23:16 2010
@@ -115,6 +115,9 @@
 	available list of parameters "{2}".
 bad-em-prop: Invalid EntityManager property passed to createEntityManager. \
 	Key: "{0}", Value: "{1}".
+ignored-em-prop: An unrecognized EntityManager property was passed to \
+	createEntityManager and will be ignored. \
+	Key: "{0}", Value: "{1}".
 bad-em-props: Invalid EntityManager properties passed to createEntityManager. \
 	See nested exceptions for details.
 system-listener-err: An error occurred invoking system entity listener \



Mime
View raw message