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

Revise TypedParameterValue usage for native queries only #3137

Closed
mp911de opened this issue Sep 1, 2023 · 0 comments
Closed

Revise TypedParameterValue usage for native queries only #3137

mp911de opened this issue Sep 1, 2023 · 0 comments
Assignees
Labels
type: enhancement A general enhancement

Comments

@mp911de
Copy link
Member

mp911de commented Sep 1, 2023

As per discussion in #3060, TypedParameterValue should be used for native queries only. Using TypedParameterValue with JPQL/HQL queries conflicts with the JPQL typing and can cause that @Converters are not considered.

@mp911de mp911de added the type: enhancement A general enhancement label Sep 1, 2023
sxhinzvc added a commit that referenced this issue Sep 25, 2023
Use Hibernate parameter accessor for native queries only to avoid affecting JPA queries.

See #3137
sxhinzvc added a commit that referenced this issue Sep 25, 2023
Use Hibernate parameter accessor for native queries only to avoid affecting JPQL queries.

See #3137
sxhinzvc added a commit that referenced this issue Sep 25, 2023
Co-locate Hibernate-specific parameters accessor as the same package as JPA parameters accessor.
Remove Parameter Accessor reference from Persistence Provider since it's created in AbstractJpaQuery.

Closes #3137
Original Pull Request: #3173
mp911de added a commit that referenced this issue Sep 27, 2023
Reformat code, add ticket references to test methods.

See #3137
Original Pull Request: #3173
mp911de pushed a commit that referenced this issue Sep 27, 2023
Use Hibernate parameter accessor for native queries only to avoid affecting JPQL queries.

Co-locate Hibernate-specific parameters accessor as the same package as JPA parameters accessor.
Remove Parameter Accessor reference from Persistence Provider since it's created in AbstractJpaQuery.

Closes #3137
Original Pull Request: #3173
mp911de added a commit that referenced this issue Sep 27, 2023
Reformat code, add ticket references to test methods.

See #3137
Original Pull Request: #3173
mp911de pushed a commit that referenced this issue Sep 27, 2023
Use Hibernate parameter accessor for native queries only to avoid affecting JPQL queries.

Co-locate Hibernate-specific parameters accessor as the same package as JPA parameters accessor.
Remove Parameter Accessor reference from Persistence Provider since it's created in AbstractJpaQuery.

Closes #3137
Original Pull Request: #3173
mp911de added a commit that referenced this issue Sep 27, 2023
Reformat code, add ticket references to test methods.

See #3137
Original Pull Request: #3173
@mp911de mp911de added this to the 3.2 RC1 (2023.1.0) milestone Sep 27, 2023
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
2 participants