Skip to content

Commit fdbcc94

Browse files
committed
Fix for SQL serve
1 parent fbd32af commit fdbcc94

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hibernate-reactive-core/src/test/java/org/hibernate/reactive/schema/SchemaUpdateTestBase.java

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ public static class IndividuallyStrategyTest extends SchemaUpdateTestBase {
4242
protected Configuration constructConfiguration(String hbm2DdlOption) {
4343
final Configuration configuration = super.constructConfiguration( hbm2DdlOption );
4444
configuration.setProperty( Settings.HBM2DDL_JDBC_METADATA_EXTRACTOR_STRATEGY, INDIVIDUALLY.toString() );
45+
// The entity we are using for testing has some arrays. The default behaviour is to store them as XML and
46+
// the Vert.x client doesn't support it at the moment.
47+
configuration.setProperty( "hibernate.type.preferred_array_jdbc_type", "VARBINARY" );
4548
return configuration;
4649
}
4750
}
@@ -53,6 +56,9 @@ public static class GroupedStrategyTest extends SchemaUpdateTestBase {
5356
protected Configuration constructConfiguration(String hbm2DdlOption) {
5457
final Configuration configuration = super.constructConfiguration( hbm2DdlOption );
5558
configuration.setProperty( Settings.HBM2DDL_JDBC_METADATA_EXTRACTOR_STRATEGY, GROUPED.toString() );
59+
// The entity we are using for testing has some arrays. The default behaviour is to store them as XML and
60+
// the Vert.x client doesn't support it at the moment.
61+
configuration.setProperty( "hibernate.type.preferred_array_jdbc_type", "VARBINARY" );
5662
return configuration;
5763
}
5864
}

0 commit comments

Comments
 (0)