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 041bedd70a
commit 43f9d20773
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();
}