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

Upgrade to JPA 3.2 #3695

Closed
wants to merge 16 commits into from
Closed

Upgrade to JPA 3.2 #3695

wants to merge 16 commits into from

Conversation

@mp911de mp911de added the type: enhancement A general enhancement label Nov 29, 2024
@mp911de mp911de added this to the 4.0 M1 (2025.1.0) milestone Nov 29, 2024
@mp911de mp911de linked an issue Dec 11, 2024 that may be closed by this pull request
5 tasks
mp911de and others added 13 commits December 11, 2024 16:50
Inline select_query into select_statement, simplify set_function resolution.

Align JPQL and EQL grammars.
Remove unused methods. Introduce QueryTokenStream.from and QueryTokenStream.ofToken() factory methods. Migrate JPQL visitors to consistently return token streams instead of mixing expression streams when obtaining values from nodes/terminal nodes.

Remove also unused concat methods for consistency.

We now instead decide on the composition (calling) site whether a token (stream) should be inlined, an expression or used as-is.
We now use getSingleResultOrNull() to avoid NoResultException handling.

Closes #3701
christophstrobl pushed a commit that referenced this pull request Dec 20, 2024
Closes: #3673
Original Pull Request: #3695
christophstrobl pushed a commit that referenced this pull request Dec 20, 2024
Closes: #3671
Original Pull Request: #3695
christophstrobl pushed a commit that referenced this pull request Dec 20, 2024
Closes: #3672
Original Pull Request: #3695
christophstrobl added a commit that referenced this pull request Dec 20, 2024
christophstrobl pushed a commit that referenced this pull request Dec 20, 2024
christophstrobl pushed a commit that referenced this pull request Dec 20, 2024
christophstrobl added a commit that referenced this pull request Dec 20, 2024
christophstrobl added a commit that referenced this pull request Dec 20, 2024
christophstrobl pushed a commit that referenced this pull request Dec 20, 2024
Inline select_query into select_statement, simplify set_function resolution.
Align JPQL and EQL grammars.
Adopt Hibernate version guards in tests.

Original Pull Request: #3695
christophstrobl pushed a commit that referenced this pull request Dec 20, 2024
christophstrobl pushed a commit that referenced this pull request Dec 20, 2024
Remove unused methods. Introduce QueryTokenStream.from and QueryTokenStream.ofToken() factory methods. Migrate JPQL visitors to consistently return token streams instead of mixing expression streams when obtaining values from nodes/terminal nodes.

Remove also unused concat methods for consistency.

We now instead decide on the composition (calling) site whether a token (stream) should be inlined, an expression or used as-is.

Original Pull Request: #3695
christophstrobl pushed a commit that referenced this pull request Dec 20, 2024
We now use getSingleResultOrNull() to avoid NoResultException handling.

Closes: #3701
Original Pull Request: #3695
christophstrobl added a commit that referenced this pull request Dec 20, 2024
Favour java.time types for auditing by switching from Date to Instant.

See: #3673
Original Pull Request: #3695
christophstrobl added a commit that referenced this pull request Dec 20, 2024
A round of minor code style improvements.

Original Pull Request: #3695
@christophstrobl christophstrobl deleted the issue/4.0.x/3673 branch December 20, 2024 10:03
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.

Upgrade to JPA 3.2
4 participants