Skip to content

Ad-hoc attribute paths #3

@goulashify

Description

@goulashify

Hey Guys and Gals!

So i've ran into the same problem as you did with Spring Data JPA as you did, i'm super happy that you made this plugin to solve it, huge-huge kudos, it already made my life easier!

I was thinking, Spring has ad-hoc entity graphs (see example 60th):

@Repository
public interface GroupRepository extends CrudRepository<GroupInfo, String> {

  @EntityGraph(attributePaths = { "members" })
  GroupInfo getByGroupName(String name);

}

Would it be convenient to do this:

final ProductRepository repo;
repo.findAll(EntityGraphUtils.fromAttributePaths("brand", "maker"));

?

I would be happy to research and make a pr about this if you think it would be helpful as well, let me know what do you think. :)

Have a pancake flavoured day,
-Dan

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions