Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues/datajpa 560 #112

Closed

Conversation

liujiong1982
Copy link

We now support programmatic use of entity graphs
@entity
@QueryEntity
@NamedEntityGraphs(@NamedEntityGraph(name = GroupInfo.members, attributeNodes = @NamedAttributeNode(members)))
public class GroupInfo {
...
@manytomany List members = new ArrayList(); //default fetch mode is lazy.
}
the fetch graph to be used can now configured on a repository query method.
userRepository.getGroup(id, new JpaEntityGraph(GroupInfo.members,EntityGraphType.LOAD));

We now support programmatic use of entity graphs
@entity
@QueryEntity
@NamedEntityGraphs(@NamedEntityGraph(name = GroupInfo.members, attributeNodes = @NamedAttributeNode(members)))
public class GroupInfo {
...
@manytomany List<GroupMember> members = new ArrayList<GroupMember>(); //default fetch mode is lazy.
}
the fetch graph to be used can now configured on a repository query method.
userRepository.getGroup(id, new JpaEntityGraph(GroupInfo.members,EntityGraphType.LOAD));
@pivotal-issuemaster
Copy link

@liujiong1982 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants