more correct test code

This commit is contained in:
Gavin King 2021-07-23 21:59:02 +02:00 committed by Christian Beikov
parent 07096e7cc1
commit 526b3659c8
6 changed files with 7 additions and 9 deletions

View File

@ -132,7 +132,7 @@ public class UserTypeComparableIdTest {
@Override
public int[] sqlTypes() {
return new int[] { SQL_TYPE.getJdbcTypeCode() };
return new int[] { SQL_TYPE.getJdbcTypeDescriptor().getDefaultSqlTypeCode() };
}
@Override

View File

@ -119,7 +119,7 @@ public class UserTypeNonComparableIdTest {
@Override
public int[] sqlTypes() {
return new int[] { SQL_TYPE.getJdbcTypeCode() };
return new int[] { SQL_TYPE.getJdbcTypeDescriptor().getDefaultSqlTypeCode() };
}
@Override

View File

@ -107,10 +107,8 @@ public class AttributeOverrideEnhancedUserTypeTest {
public static class YearMonthUserType implements UserType, Serializable {
@Override
public int[] sqlTypes() {
return new int[] {
IntegerType.INSTANCE.getJdbcTypeCode(),
IntegerType.INSTANCE.getJdbcTypeCode(),
};
int intType = IntegerType.INSTANCE.getJdbcTypeDescriptor().getDefaultSqlTypeCode();
return new int[] { intType, intType };
}
@Override

View File

@ -107,7 +107,7 @@ public class MyStringType implements UserType, DynamicParameterizedType {
@Override
public int[] sqlTypes() {
return new int[] { StringType.INSTANCE.getJdbcTypeCode() };
return new int[] { StringType.INSTANCE.getJdbcTypeDescriptor().getDefaultSqlTypeCode() };
}
@Override

View File

@ -25,7 +25,7 @@ public class StringWrapperUserType implements UserType {
@Override
public int[] sqlTypes() {
return new int[] {StringType.INSTANCE.getJdbcTypeCode()};
return new int[] {StringType.INSTANCE.getJdbcTypeDescriptor().getDefaultSqlTypeCode()};
}
@Override

View File

@ -21,7 +21,7 @@ public class AgeType implements UserType {
@Override
public int[] sqlTypes() {
return new int[] {
IntegerType.INSTANCE.getJdbcTypeCode()
IntegerType.INSTANCE.getJdbcTypeDescriptor().getDefaultSqlTypeCode()
};
}