HHH-16035 change the default for hibernate.type.preferred_duration_jdbc_type to NUMERIC

There's really no value at all in having h2 as the only platform where Duration
is persisted as 'interval second' by default. People usually use h2 for testing,
and probably actually prefer if the schema is more similar to the schema of
their "real" database.

Also, this tiny change fixes issues 1. and 2. of HHH-16035 as a side-effect.
This commit is contained in:
Gavin 2023-01-13 10:31:43 +01:00 committed by Gavin King
parent 669be6a776
commit 6f7b17d36b
1 changed files with 1 additions and 1 deletions

View File

@ -546,7 +546,7 @@ public final class ConfigurationHelper {
return explicitSetting;
}
return SqlTypes.INTERVAL_SECOND;
return SqlTypes.NUMERIC;
}
@Incubating