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

Add support for using EntityViewSetting in Spring Data Repository methods #622

Closed
beikov opened this issue Aug 1, 2018 · 2 comments

Comments

@beikov
Copy link
Member

commented Aug 1, 2018

Follow up of #564
Add support for using an EntityViewSetting parameter in Spring Data repositories.

@heruan

This comment has been minimized.

Copy link
Collaborator

commented Aug 10, 2018

What about a

interface EntityViewSettingProcessor {

    <Q extends FullQueryBuilder<T, Q>> void acceptEntityViewSetting(EntityViewSetting<T, Q> setting);
}

and then

interface MyRepository extends Repository<Cat, Long> {

    List<CatView> findAll(EntityViewSettingProcessor processor);
}

repository.findAll(setting -> /* do things */);
@beikov

This comment has been minimized.

Copy link
Member Author

commented Aug 10, 2018

That's actually a pretty nice way to do it. I like it!

heruan added a commit to heruan/blaze-persistence that referenced this issue Aug 10, 2018

@beikov beikov added this to the 1.3.0 milestone Aug 15, 2018

heruan added a commit to heruan/blaze-persistence that referenced this issue Aug 26, 2018
heruan added a commit to heruan/blaze-persistence that referenced this issue Aug 27, 2018
heruan added a commit to heruan/blaze-persistence that referenced this issue Aug 27, 2018

@beikov beikov closed this in #642 Aug 27, 2018

beikov added a commit that referenced this issue Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.