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

Commits on Nov 7, 2014

  1. issues/DATAJPA-560 Allow programmatic use of entity graphs

    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));
    liujiong1982 committed Nov 7, 2014
    Configuration menu
    Copy the full SHA
    a267195 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e0d16b4 View commit details
    Browse the repository at this point in the history