HHH-13025 - Rename MetadataContext#getEmbeddableTypeMap to getEmbeddableTypeSet

This commit is contained in:
Vlad Mihalcea 2018-10-11 17:52:41 +03:00
parent a5138621a6
commit 109085cab8
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ import org.hibernate.mapping.Property;
* This contextual information includes data needing to be processed in a second pass as well as
* cross-references into the built metamodel classes.
* <p/>
* At the end of the day, clients are interested in the {@link #getEntityTypeMap} and {@link #getEmbeddableTypeMap}
* At the end of the day, clients are interested in the {@link #getEntityTypeMap} and {@link #getEmbeddableTypeSet}
* results, which represent all the registered {@linkplain #registerEntityType entities} and
* {@linkplain #registerEmbeddedableType embeddables} respectively.
*
@ -93,7 +93,7 @@ class MetadataContext {
return Collections.unmodifiableMap( entityTypes );
}
public Set<EmbeddableTypeImpl<?>> getEmbeddableTypeMap() {
public Set<EmbeddableTypeImpl<?>> getEmbeddableTypeSet() {
return Collections.unmodifiableSet( embeddables );
}

View File

@ -247,7 +247,7 @@ public class MetamodelImpl implements MetamodelImplementor, Serializable {
context.wrapUp();
this.jpaEntityTypeMap.putAll( context.getEntityTypeMap() );
this.jpaEmbeddableTypes.addAll( context.getEmbeddableTypeMap() );
this.jpaEmbeddableTypes.addAll( context.getEmbeddableTypeSet() );
for ( EmbeddableTypeImpl<?> embeddable: jpaEmbeddableTypes ) {
this.jpaEmbeddableTypeMap.put( embeddable.getJavaType(), embeddable );
}