Skip to content

Commit

Permalink
Fix for SQL serve
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideD committed Nov 29, 2024
1 parent fbd32af commit fdbcc94
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public static class IndividuallyStrategyTest extends SchemaUpdateTestBase {
protected Configuration constructConfiguration(String hbm2DdlOption) {
final Configuration configuration = super.constructConfiguration( hbm2DdlOption );
configuration.setProperty( Settings.HBM2DDL_JDBC_METADATA_EXTRACTOR_STRATEGY, INDIVIDUALLY.toString() );
// The entity we are using for testing has some arrays. The default behaviour is to store them as XML and
// the Vert.x client doesn't support it at the moment.
configuration.setProperty( "hibernate.type.preferred_array_jdbc_type", "VARBINARY" );
return configuration;
}
}
Expand All @@ -53,6 +56,9 @@ public static class GroupedStrategyTest extends SchemaUpdateTestBase {
protected Configuration constructConfiguration(String hbm2DdlOption) {
final Configuration configuration = super.constructConfiguration( hbm2DdlOption );
configuration.setProperty( Settings.HBM2DDL_JDBC_METADATA_EXTRACTOR_STRATEGY, GROUPED.toString() );
// The entity we are using for testing has some arrays. The default behaviour is to store them as XML and
// the Vert.x client doesn't support it at the moment.
configuration.setProperty( "hibernate.type.preferred_array_jdbc_type", "VARBINARY" );
return configuration;
}
}
Expand Down

0 comments on commit fdbcc94

Please sign in to comment.