Skip to content

Consider query rewriting in query method validation - #4363

Closed
mp911de wants to merge 5 commits into
mainfrom
issue/4362
Closed

mp911de wants to merge 5 commits into
mainfrom
issue/4362

Conversation

@mp911de

@mp911de mp911de commented Sep 24, 2026

Copy link
Copy Markdown
Member

We now consider QueryRewriter and DTO query rewrites when validating String-based query methods to fail fast on invalid queries instead of delayed failures on query invocation.

Dynamic projections are not able to take advantage of early validation as their type is not available without an actual query method invocation, however, this works just fine with static projections.

Closes #4362

@mp911de mp911de added the type: enhancement A general enhancement label Sep 24, 2026
christophstrobl and others added 5 commits October 6, 2026 13:13
We now consider QueryRewriter and DTO query rewrites when validating String-based query methods to fail fast on invalid queries instead of delayed failures on query invocation.

Dynamic projections are not able to take advantage of early validation as their type is not available without an actual query method invocation, however, this works just fine with static projections.

Closes #4362
christophstrobl pushed a commit that referenced this pull request Oct 13, 2026
We now consider QueryRewriter and DTO query rewrites when validating String-based query methods to fail fast on invalid queries instead of delayed failures on query invocation.

Dynamic projections are not able to take advantage of early validation as their type is not available without an actual query method invocation, however, this works just fine with static projections.

Closes #4362
Original Pull Request: #4363
christophstrobl added a commit that referenced this pull request Oct 13, 2026
Original Pull Request: #4363
christophstrobl added a commit that referenced this pull request Oct 13, 2026
@christophstrobl christophstrobl added this to the 4.2.0-RC1 (2026.1.0) milestone Oct 13, 2026
@christophstrobl
christophstrobl deleted the issue/4362 branch October 13, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add @Query startup validation using static projections

3 participants