HHH-13025 - Rename MetadataContext#getEmbeddableTypeMap to getEmbeddableTypeSet
This commit is contained in:
parent
a5138621a6
commit
109085cab8
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue