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 of typed conjunction to predicate compostiion #10

Closed
avegera opened this issue Jul 2, 2024 · 0 comments · Fixed by #13
Closed

Add support of typed conjunction to predicate compostiion #10

avegera opened this issue Jul 2, 2024 · 0 comments · Fixed by #13
Assignees
Labels
enhancement New feature or request

Comments

@avegera
Copy link
Owner

avegera commented Jul 2, 2024

We need to support typed predicates in predicate composition like: CONDITION.and().TYPE().CONDITION

For example:

where(Customer::roles).isNull().and().list(Customer::products).notEmpty();

In other words, new method and() should be introduced to the RichPredicate:

public interface RichPredicate<T> extends Predicate<T> {

    ...

    RichPredicateComposition<T> and();
}

where RichPredicateComposition has the same methods as WhereType interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant