-
Notifications
You must be signed in to change notification settings - Fork 358
Cannot map empty Criteria #1329
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
Comments
Hi @holmofy, org.springframework.data.jdbc.core.convert.QueryMapper#getMappedObject() Updating the code according to the attached screenshot should resolve this issue and by if the criteria is empty all the records in the table will be returned falling back to JPA behavior in spring: @schauder, |
Yep, that's the problem I'm having. Thank you so much for replying so quickly. |
@holmofy Why did you close this issue? Was your problem resolved? Or was this in anticipation of the PR by @hariohmprasath ? If so, we'll close the issue only after the PR is merged. Reopening in the assumption the later is the case. |
spring data jdbc: spring-data-jdbc-3.0.0-M5.jar
controller
request param:

This interface doesn't work like spring data jpa's findByExample method. A query with all conditions empty will report an error directly:
The text was updated successfully, but these errors were encountered: