Skip to content

Conversation

beikov
Copy link
Member

@beikov beikov commented Jul 29, 2025

[Please describe here what your change is about]


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


https://hibernate.atlassian.net/browse/HHH-19657

…tion with setting hibernate.type.java_time_use_direct_jdbc=true
Comment on lines +215 to +218
final var nativeQuery = session.createNativeQuery(
"WITH data AS (SELECT unnest(?) AS id, unnest(?) AS offset_date_time)"
+ " INSERT INTO EntityWithJavaTimeValues (id, theOffsetDateTime) SELECT * FROM data"
);

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
QueryProducerImplementor.createNativeQuery
should be avoided because it has been deprecated.
@beikov beikov merged commit d38b2db into hibernate:6.6 Jul 29, 2025
28 of 32 checks passed
@beikov beikov deleted the HHH-19657-6.6 branch July 29, 2025 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant