-
Notifications
You must be signed in to change notification settings - Fork 53
Closed
Description
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