Add ability to include one fetch group in another to FetchGroup annotation.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434203 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
A. Abram White 2006-08-23 21:50:02 +00:00
parent bad3cba9b6
commit 3aaa66ee7f
2 changed files with 7 additions and 0 deletions

View File

@ -869,6 +869,8 @@ public class AnnotationPersistenceMetaDataParser
fg = meta.addDeclaredFetchGroup(group.name());
if (group.postLoad())
fg.setPostLoad(true);
for (String s : group.fetchGroups())
fg.addDeclaredInclude(s);
for (FetchAttribute attr : group.attributes())
parseFetchAttribute(meta, fg, attr);
}

View File

@ -44,4 +44,9 @@ public @interface FetchGroup {
* Included attributes.
*/
FetchAttribute[] attributes() default {};
/**
* Included fetch groups.
*/
String[] fetchGroups() default {};
}