private void parseFetchAttribute(ClassMetaData meta,
org.apache.openjpa.meta.FetchGroup fg, FetchAttribute attr) {
FieldMetaData field = meta.getDeclaredField(attr.name());
if (field == null
|| field.getManagement() != FieldMetaData.MANAGE_PERSISTENT)
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());