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
Closed

Comments

@beikov
Copy link
Member

beikov commented Aug 1, 2018

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

@heruan
Copy link
Collaborator

heruan 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
Copy link
Member Author

beikov commented Aug 10, 2018

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

heruan pushed 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 pushed a commit to heruan/blaze-persistence that referenced this issue Aug 26, 2018
heruan pushed a commit to heruan/blaze-persistence that referenced this issue Aug 27, 2018
heruan pushed a commit to heruan/blaze-persistence 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
Development

No branches or pull requests

2 participants