openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allee8...@apache.org
Subject svn commit: r646377 - /openjpa/branches/1.0.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java
Date Wed, 09 Apr 2008 14:31:32 GMT
Author: allee8285
Date: Wed Apr  9 07:31:30 2008
New Revision: 646377

URL: http://svn.apache.org/viewvc?rev=646377&view=rev
Log:
OPENJPA-565 - Ignore duplicate NamedQuery definition and continue to parse the remaining entries
in NamedQueries definition.

Modified:
    openjpa/branches/1.0.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java

Modified: openjpa/branches/1.0.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.0.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java?rev=646377&r1=646376&r2=646377&view=diff
==============================================================================
--- openjpa/branches/1.0.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java
(original)
+++ openjpa/branches/1.0.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java
Wed Apr  9 07:31:30 2008
@@ -1567,7 +1567,7 @@
             if (meta != null) {
                 if (_log.isWarnEnabled())
                     _log.warn(_loc.get("dup-query", query.name(), el));
-                return;
+                continue;
             }
 
             meta = getRepository().addQueryMetaData(null, query.name());
@@ -1608,7 +1608,7 @@
             if (meta != null) {
                 if (_log.isWarnEnabled())
                     _log.warn(_loc.get("dup-query", query.name(), el));
-                return;
+                continue;
             }
 
             meta = getRepository().addQueryMetaData(null, query.name());



Mime
View raw message