Fetch group fixes.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428577 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
A. Abram White 2006-08-03 23:56:32 +00:00
parent d1df9344fe
commit 77e7d97379
2 changed files with 6 additions and 3 deletions

View File

@ -274,9 +274,11 @@ public class FetchGroup {
if (_meta != null) {
ClassMetaData sup = _meta.getPCSuperclassMetaData();
FetchGroup supFG = sup.getFetchGroup(_name);
if (supFG != null && supFG.isPostLoad())
return true;
if (sup != null) {
FetchGroup supFG = sup.getFetchGroup(_name);
if (supFG != null && supFG.isPostLoad())
return true;
}
}
if (_includes == null)

View File

@ -884,6 +884,7 @@ public class AnnotationPersistenceMetaDataParser
throw new MetaDataException(_loc.get("bad-fg-field", fg.getName(),
meta, attr.name()));
field.setInFetchGroup(fg.getName(), true);
if (attr.recursionDepth() != Integer.MIN_VALUE)
fg.setRecursionDepth(field, attr.recursionDepth());
}