HHH-10968 - Skip EntityMode.MAP metadata when JpaMetaModelPopulationSetting is IGNORE_UNSUPPORTED.
This commit is contained in:
parent
5f3209cf44
commit
45460a7085
|
@ -121,7 +121,10 @@ class MetadataContext {
|
|||
}
|
||||
|
||||
/*package*/ void registerEntityType(PersistentClass persistentClass, EntityTypeImpl<?> entityType) {
|
||||
entityTypes.put( entityType.getBindableJavaType(), entityType );
|
||||
// HHH-10968 - Skip EntityMode.MAP entities when ignore unsupported enabled.
|
||||
if ( !( entityType.getBindableJavaType() == null && ignoreUnsupported ) ) {
|
||||
entityTypes.put( entityType.getBindableJavaType(), entityType );
|
||||
}
|
||||
entityTypesByEntityName.put( persistentClass.getEntityName(), entityType );
|
||||
entityTypesByPersistentClass.put( persistentClass, entityType );
|
||||
orderedMappings.add( persistentClass );
|
||||
|
|
Loading…
Reference in New Issue