diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/FinderCacheImpl.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/FinderCacheImpl.java index 8afc463ad..251514ed4 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/FinderCacheImpl.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/FinderCacheImpl.java @@ -174,7 +174,8 @@ public class FinderCacheImpl if (finder != null) { _delegate.put(mapping, finder); if (_log != null && _log.isTraceEnabled()) - _log.trace(_loc.get("finder-cached", finder)); + _log.trace(_loc.get("finder-cached", mapping, + finder.getQueryString())); } else { if (_log != null && _log.isWarnEnabled()) _log.warn(_loc.get("finder-not-cachable", mapping)); diff --git a/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/kernel/localizer.properties b/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/kernel/localizer.properties index 88c9f92c5..8cdc8b5cd 100644 --- a/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/kernel/localizer.properties +++ b/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/kernel/localizer.properties @@ -135,4 +135,8 @@ uparam-no-pos: User parameter "{0}" does not appear in any position in the \ uparam-pc-key: Class "{0}" uses {1} primary key columns but corresponding \ positions {2} in the parameter list of the prepared query is not compatible. uparam-missing: Parameter {0} in SQL Query "{1}" is not given a value. The \ - parameters given is "{2}". \ No newline at end of file + parameters given is "{2}". +finder-cached: Cached finder for "{0}" SQL: "{1}" +finder-not-cachable: Finder for "{0}" is not cachable. +finder-add-pattern: Exclusion pattern "{0}" for finder query has invalidated \ + {1} existing entries "{2}" \ No newline at end of file