mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-07 11:48:18 +00:00
HHH-13025 - Rename MetadataContext#getEmbeddableTypeMap to getEmbeddableTypeSet
This commit is contained in:
parent
a5138621a6
commit
109085cab8
@ -39,7 +39,7 @@
|
||||
* 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 @@ public Map<Class<?>, EntityTypeImpl<?>> getEntityTypeMap() {
|
||||
return Collections.unmodifiableMap( entityTypes );
|
||||
}
|
||||
|
||||
public Set<EmbeddableTypeImpl<?>> getEmbeddableTypeMap() {
|
||||
public Set<EmbeddableTypeImpl<?>> getEmbeddableTypeSet() {
|
||||
return Collections.unmodifiableSet( embeddables );
|
||||
}
|
||||
|
||||
|
@ -247,7 +247,7 @@ public MetadataImplementor getMetadata() {
|
||||
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…
x
Reference in New Issue
Block a user