HHH-17827 Fix check for Map dynamic entity classes

This commit is contained in:
Marco Belladelli 2024-04-02 12:30:04 +02:00
parent bb88d3244b
commit e8252cb4a8
1 changed files with 1 additions and 1 deletions

View File

@ -665,7 +665,7 @@ public class JpaMetamodelImpl implements JpaMetamodelImplementor, Serializable {
final Class<?> javaTypeClass = persistentClass.getMappedClass();
final JavaType<?> javaType;
if ( javaTypeClass == null || Map.class.isAssignableFrom( javaTypeClass ) ) {
if ( javaTypeClass == null || javaTypeClass == Map.class ) {
// dynamic map
javaType = new DynamicModelJavaType();
}