mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-23 19:57:08 +00:00
HHH-15240 Defining a UserVersionType causes AssertionError from VersionResolution if running in JVM with -ea flag set
This commit is contained in:
parent
6b02554c82
commit
6a778a321a
@ -83,7 +83,7 @@ public TimeZoneStorageStrategy getDefaultTimeZoneStorageStrategy() {
|
||||
final BasicType<?> basicType = typeConfiguration.getBasicTypeRegistry().resolve( jtd, recommendedJdbcType );
|
||||
final BasicType legacyType = typeConfiguration.getBasicTypeRegistry().getRegisteredType( jtd.getJavaType() );
|
||||
|
||||
assert legacyType.getJdbcType().equals( recommendedJdbcType );
|
||||
assert legacyType.getJdbcType().getJdbcTypeCode() == recommendedJdbcType.getJdbcTypeCode();
|
||||
|
||||
return new VersionResolution<>( jtd, recommendedJdbcType, basicType, legacyType );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user