diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java index e188fc2f6..0fc4f1b28 100644 --- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java +++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java @@ -1567,7 +1567,7 @@ public class AnnotationPersistenceMetaDataParser 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 @@ public class AnnotationPersistenceMetaDataParser if (meta != null) { if (_log.isWarnEnabled()) _log.warn(_loc.get("dup-query", query.name(), el)); - return; + continue; } meta = getRepository().addQueryMetaData(null, query.name());