openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allee8...@apache.org
Subject svn commit: r646378 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java
Date Wed, 09 Apr 2008 14:31:33 GMT
Author: allee8285
Date: Wed Apr  9 07:31:33 2008
New Revision: 646378

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

Modified:
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java?rev=646378&r1=646377&r2=646378&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java
Wed Apr  9 07:31:33 2008
@@ -1582,7 +1582,7 @@
             if (meta != null) {
                 if (_log.isWarnEnabled())
                     _log.warn(_loc.get("dup-query", query.name(), el));
-                return;
+                continue;
             }
 
             meta = getRepository().addQueryMetaData(null, query.name());
@@ -1623,7 +1623,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