-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 fluent findBy
API to JpaSpecificationExecutor
#2274
Comments
Related to #1752 spring-projects/spring-data-commons#2421 |
@quaff Have you checked out the recently added An example of using it to get a @Test // GH-2294
void findByFluentPredicateStream() {
Stream<User> userStream = predicateExecutor.findBy(user.firstname.contains("v"),
q -> q.sortBy(Sort.by("firstname")).stream());
assertThat(userStream).containsExactly(dave, oliver);
} There is also support for Query By Example. |
@gregturn Thanks, but I'm not using Query DSL. |
It would make sense to add the fluent |
findBy
API to JpaSpecificationExecutor
Extend fluent findBy support through the usage of Specifications. See #2274.
Extend fluent findBy support through the usage of Specifications. See #2274.
Extend fluent findBy support through the usage of Specifications. See #2274.
follow up #2273, I need streaming matched data filter by
Specification
, I triedIt failed with:
It seems like
Specification
method parameter is treated as query parameter.The text was updated successfully, but these errors were encountered: