From 5196ae0bc27d4d50ef468aa9b5334155c89a8dcb Mon Sep 17 00:00:00 2001 From: Albert Lee Date: Wed, 9 Apr 2008 14:31:33 +0000 Subject: [PATCH] OPENJPA-565 - Ignore duplicate NamedQuery definition and continue to parse the remaining entries in NamedQueries definition. git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@646378 13f79535-47bb-0310-9956-ffa450edef68 --- .../persistence/AnnotationPersistenceMetaDataParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 b12c818c8..ab6233dbe 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 @@ -1582,7 +1582,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()); @@ -1623,7 +1623,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());