HHH-17827 Fix check for Map dynamic entity classes
This commit is contained in:
parent
041bedd70a
commit
43f9d20773
|
@ -665,7 +665,7 @@ public class JpaMetamodelImpl implements JpaMetamodelImplementor, Serializable {
|
||||||
|
|
||||||
final Class<?> javaTypeClass = persistentClass.getMappedClass();
|
final Class<?> javaTypeClass = persistentClass.getMappedClass();
|
||||||
final JavaType<?> javaType;
|
final JavaType<?> javaType;
|
||||||
if ( javaTypeClass == null || Map.class.isAssignableFrom( javaTypeClass ) ) {
|
if ( javaTypeClass == null || javaTypeClass == Map.class ) {
|
||||||
// dynamic map
|
// dynamic map
|
||||||
javaType = new DynamicModelJavaType();
|
javaType = new DynamicModelJavaType();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue