mirror of https://github.com/apache/openjpa.git
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:
parent
bad3cba9b6
commit
3aaa66ee7f
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -44,4 +44,9 @@ public @interface FetchGroup {
|
|||
* Included attributes.
|
||||
*/
|
||||
FetchAttribute[] attributes() default {};
|
||||
|
||||
/**
|
||||
* Included fetch groups.
|
||||
*/
|
||||
String[] fetchGroups() default {};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue