Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYzQwMThjZjE0...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-16273?atlOrigin=eyJpIjoiYzQwMT...
) HHH-16273 (
https://hibernate.atlassian.net/browse/HHH-16273?atlOrigin=eyJpIjoiYzQwMT...
) Support for Dialect native JdbcParameterRenderer (
https://hibernate.atlassian.net/browse/HHH-16273?atlOrigin=eyJpIjoiYzQwMT...
)
Change By: Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
{code:java} /**
* Specifies Controls whether to use JDBC parameter markers (`?`) or dialect native markers
for parameters
* within {@linkplain java. sql.PreparedStatement preparable} SQL statements.
*
* @implNote By default ({@code true false }), dialect native standard JDBC parameter
markers (`?`) are used , if any; disable.
* Enable ( set {@code false true }) to use the standard JDBC parameter Dialect's
native markers (`?`) instead , if any.
*
* @see org.hibernate.sql.ast.spi.JdbcParameterRenderer ParameterMarkerStrategy
* @see org.hibernate.dialect.Dialect# getNativeParameterRenderer
getNativeParameterMarkerStrategy ()
*
* @since 6.2
*/
@Incubating
String DIALECT_NATIVE_PARAM_MARKERS =
"hibernate.dialect.native_param_markers";{code}
Given
[
https://hibernate.atlassian.net/browse/HHH-16229|https://hibernate.atlass...]
and this, parameter rendering can be affected in these following ways:
# {{JdbcParameterRenderer}} is a service. Mainly intended for integrators, but a custom
initiator for that service can be registered.
# The standard initiator considers the {{hibernate.dialect.native_param_markers}} setting
to determine the behavior
## if {{true}} (the default), the Dialect’s native parameter markers, if any, are used
## otherwise, JDBC standard markers ({{?}}) are used
(
https://hibernate.atlassian.net/browse/HHH-16273#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16273#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100217- sha1:2199b34 )