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

Document that fluent findBy(…) queries must return a result #3237

Closed
mp911de opened this issue Jan 22, 2025 · 0 comments
Closed

Document that fluent findBy(…) queries must return a result #3237

mp911de opened this issue Jan 22, 2025 · 0 comments
Assignees
Labels
type: documentation A documentation update

Comments

@mp911de
Copy link
Member

mp911de commented Jan 22, 2025

Based on spring-projects/spring-data-jpa#3294, Query by Example and Querydsl findBy(…) methods must return a result to prevent leaking the query object. Query objects are often associated with state that is only valid inside the findBy(…) method (e.g. AOP, transactions) and the query object is no longer valid outside of the method call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation update
Projects
None yet
Development

No branches or pull requests

1 participant