Skip to content

Commit 29b0673

Browse files
committed
HHH-19324 - Switch tests using hbm.xml to use mapping.xml
1 parent 3cafefd commit 29b0673

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/boot/models/xml/dynamic/DynamicTypingTests.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,15 @@ void testDynamicModelBasicTyping(DomainModelScope modelScope) {
4848
.getTypeConfiguration()
4949
.getJdbcTypeRegistry()
5050
.getDescriptor( SqlTypes.UUID );
51+
final JdbcType booleanJdbcType = domainModel
52+
.getTypeConfiguration()
53+
.getJdbcTypeRegistry()
54+
.getDescriptor( SqlTypes.BOOLEAN );
5155

5256
final RootClass entityBinding = (RootClass) domainModel.getEntityBinding( "TheEntity" );
5357
assertThat( entityBinding ).isNotNull();
5458

55-
verifyBasicAttribute( entityBinding, "theBoolean", BooleanJavaType.class, SqlTypes.BOOLEAN );
59+
verifyBasicAttribute( entityBinding, "theBoolean", BooleanJavaType.class, booleanJdbcType.getJdbcTypeCode() );
5660
verifyBasicAttribute( entityBinding, "theString", StringJavaType.class, SqlTypes.VARCHAR );
5761
verifyBasicAttribute( entityBinding, "theInt", IntegerJavaType.class, SqlTypes.INTEGER );
5862
verifyBasicAttribute( entityBinding, "theInteger", IntegerJavaType.class, SqlTypes.INTEGER );

0 commit comments

Comments
 (0)