HHH-10968 - Skip EntityMode.MAP metadata when JpaMetaModelPopulationSetting is IGNORE_UNSUPPORTED.

This commit is contained in:
Chris Cranford 2016-07-25 21:09:26 -05:00
parent 5f3209cf44
commit 45460a7085
1 changed files with 4 additions and 1 deletions

View File

@ -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 );