Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNTZjZWQ1MWIx...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-16273?atlOrigin=eyJpIjoiNTZjZW...
) HHH-16273 (
https://hibernate.atlassian.net/browse/HHH-16273?atlOrigin=eyJpIjoiNTZjZW...
) Support for Dialect native ParameterMarkerStrategy (
https://hibernate.atlassian.net/browse/HHH-16273?atlOrigin=eyJpIjoiNTZjZW...
)
Change By: Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
{code:java} /**
* Controls whether to use JDBC markers (`?`) or dialect native markers for parameters
* within {@linkplain java.sql.PreparedStatement preparable} SQL statements.
*
* @implNote By default Disabled ({@code false}) by default , indicating standard JDBC
parameter
* markers (`?`) are used.
* Enable (set {@code true}) to use the Dialect's native
* markers, if any ; for Dialects without native markers, the standard JDBC strategy
* is used.
*
* @see ParameterMarkerStrategy
* @see org.hibernate.dialect.Dialect#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 ParameterMarkerStrategy }} 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 if {{false}} , the default, 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 )