mirror of https://github.com/apache/openjpa.git
corrected debug logic; improved trace message
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@496886 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7afa9075e1
commit
a6e07e5040
|
@ -245,16 +245,16 @@ public class PersistenceMetaDataFactory
|
|||
|
||||
@Override
|
||||
protected void mapPersistentTypeNames(Object rsrc, String[] names) {
|
||||
if (!(rsrc instanceof URL)) {
|
||||
if (log.isTraceEnabled())
|
||||
log.trace(
|
||||
_loc.get("map-persistent-types-skipping-non-url", rsrc));
|
||||
return;
|
||||
} else if (rsrc.toString().endsWith(".class")) {
|
||||
if (rsrc.toString().endsWith(".class")) {
|
||||
if (log.isTraceEnabled())
|
||||
log.trace(
|
||||
_loc.get("map-persistent-types-skipping-class", rsrc));
|
||||
return;
|
||||
} else if (!(rsrc instanceof URL)) {
|
||||
if (log.isTraceEnabled())
|
||||
log.trace(
|
||||
_loc.get("map-persistent-types-skipping-non-url", rsrc));
|
||||
return;
|
||||
}
|
||||
|
||||
if (log.isTraceEnabled())
|
||||
|
@ -412,7 +412,7 @@ public class PersistenceMetaDataFactory
|
|||
if (rsrcs == null)
|
||||
rsrcs = Collections.singleton("META-INF/orm.xml");
|
||||
else
|
||||
rsrcs.add ("META-INF/orm.xml");
|
||||
rsrcs.add("META-INF/orm.xml");
|
||||
}
|
||||
|
||||
public void setInto(Options opts) {
|
||||
|
|
Loading…
Reference in New Issue