Skip to content

Commit

Permalink
HHH-17827 Fix check for Map dynamic entity classes
Browse files Browse the repository at this point in the history
  • Loading branch information
mbladel committed May 6, 2024
1 parent 86deef6 commit d348472
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ private EntityTypeImpl<?> buildEntityType(

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();
}
Expand Down

0 comments on commit d348472

Please sign in to comment.