use of org.hibernate.type.descriptor.jdbc.JdbcType in project hibernate-orm by hibernate.
the class QueryTimeOutTest method before.
@Before
public void before() {
CONNECTION_PROVIDER.clear();
final JdbcType jdbcType = sessionFactory().getTypeConfiguration().getJdbcTypeRegistry().getDescriptor(Types.VARCHAR);
expectedSqlQuery = "update AnEntity set name=" + jdbcType.getJdbcLiteralFormatter(StringJavaType.INSTANCE).toJdbcLiteral("abc", sessionFactory().getJdbcServices().getDialect(), sessionFactory().getWrapperOptions());
}
Aggregations