{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.atlassian.net/browse/HHH-16229|smart-link] 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 |
|