mirror of https://github.com/apache/openjpa.git
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/branches/1.0.x@646377 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
30878191e1
commit
247186a91f
|
@ -1567,7 +1567,7 @@ public class AnnotationPersistenceMetaDataParser
|
||||||
if (meta != null) {
|
if (meta != null) {
|
||||||
if (_log.isWarnEnabled())
|
if (_log.isWarnEnabled())
|
||||||
_log.warn(_loc.get("dup-query", query.name(), el));
|
_log.warn(_loc.get("dup-query", query.name(), el));
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
meta = getRepository().addQueryMetaData(null, query.name());
|
meta = getRepository().addQueryMetaData(null, query.name());
|
||||||
|
@ -1608,7 +1608,7 @@ public class AnnotationPersistenceMetaDataParser
|
||||||
if (meta != null) {
|
if (meta != null) {
|
||||||
if (_log.isWarnEnabled())
|
if (_log.isWarnEnabled())
|
||||||
_log.warn(_loc.get("dup-query", query.name(), el));
|
_log.warn(_loc.get("dup-query", query.name(), el));
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
meta = getRepository().addQueryMetaData(null, query.name());
|
meta = getRepository().addQueryMetaData(null, query.name());
|
||||||
|
|
Loading…
Reference in New Issue