HHH-18810 expose impliedJavaType of BasicValue

This commit is contained in:
Gavin King 2024-11-28 19:09:02 +01:00
parent 79aa178047
commit d60aa27e7c
1 changed files with 3 additions and 2 deletions

View File

@ -737,12 +737,13 @@ public class BasicValue extends SimpleValue implements JdbcTypeIndicators, Resol
} }
} }
private java.lang.reflect.Type impliedJavaType(TypeConfiguration typeConfiguration) { @Incubating
public java.lang.reflect.Type impliedJavaType(TypeConfiguration typeConfiguration) {
if ( resolvedJavaType != null ) { if ( resolvedJavaType != null ) {
return resolvedJavaType; return resolvedJavaType;
} }
else if ( implicitJavaTypeAccess != null ) { else if ( implicitJavaTypeAccess != null ) {
return implicitJavaTypeAccess.apply(typeConfiguration); return implicitJavaTypeAccess.apply( typeConfiguration );
} }
else if ( ownerName != null && propertyName != null ) { else if ( ownerName != null && propertyName != null ) {
return reflectedPropertyType( ownerName, propertyName, classLoaderService() ); return reflectedPropertyType( ownerName, propertyName, classLoaderService() );