Skip to content

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented May 28, 2025

Closes #3902

@mp911de mp911de changed the title Issue/3902 Make identification variables and the SELECT clause in JPQL optional May 28, 2025
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 28, 2025
@mp911de mp911de added this to the 4.0 M4 (2025.1.0) milestone May 28, 2025
@mp911de mp911de added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels May 28, 2025
;

identification_variable_declaration
: range_variable_declaration (join | fetch_join)*
;

range_variable_declaration
: entity_name AS? identification_variable
: entity_name AS? identification_variable?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about entity_name (AS? identification_variable)? ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good.


@Test
void whereClause() {
// TBD
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we missing a test here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops. Likely, my bad.

mp911de added a commit that referenced this pull request Jul 7, 2025
mp911de added a commit that referenced this pull request Jul 7, 2025
Align test methods between EQL and JPQL.
Refine identification variable syntax grouping. Align and simplify EQL and JPQL renderers.

See #3902
Original pull request: #3903
@mp911de mp911de closed this Jul 7, 2025
@mp911de mp911de deleted the issue/3902 branch July 7, 2025 07:48
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.

Make identification variables and the SELECT clause in JPQL optional
3 participants