Remove a few redundant method overrides in metamodel interfaces

This commit is contained in:
Yoann Rodière 2021-10-04 13:53:01 +02:00 committed by Steve Ebersole
parent dd1fb78f32
commit 0c27e3428d
1 changed files with 0 additions and 36 deletions

View File

@ -23,7 +23,6 @@ import org.hibernate.metamodel.model.domain.EntityDomainType;
import org.hibernate.metamodel.model.domain.ManagedDomainType;
import org.hibernate.persister.collection.CollectionPersister;
import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.type.spi.TypeConfiguration;
/**
* Hibernate extension to the JPA {@link Metamodel} contract
@ -34,44 +33,12 @@ import org.hibernate.type.spi.TypeConfiguration;
*/
@Deprecated
public interface MetamodelImplementor extends MappingMetamodel, Metamodel {
/**
* Access to the TypeConfiguration in effect for this SessionFactory/Metamodel
*
* @return Access to the TypeConfiguration
*/
TypeConfiguration getTypeConfiguration();
@Override
SessionFactoryImplementor getSessionFactory();
Collection<EntityNameResolver> getEntityNameResolvers();
/**
* Locate an EntityPersister by the entity class. The passed Class might refer to either
* the entity name directly, or it might name a proxy interface for the entity. This
* method accounts for both, preferring the direct named entity name.
*
* @param byClass The concrete Class or proxy interface for the entity to locate the persister for.
*
* @return The located EntityPersister, never {@code null}
*
* @throws org.hibernate.UnknownEntityTypeException If a matching EntityPersister cannot be located
*/
default EntityPersister locateEntityPersister(Class byClass){
return locateEntityDescriptor( byClass );
}
/**
* Locate the entity persister by name.
*
* @param byName The entity name
*
* @return The located EntityPersister, never {@code null}
*
* @throws org.hibernate.UnknownEntityTypeException If a matching EntityPersister cannot be located
*/
EntityPersister locateEntityPersister(String byName);
/**
* Locate the persister for an entity by the entity class.
*
@ -170,9 +137,6 @@ public interface MetamodelImplementor extends MappingMetamodel, Metamodel {
// Co-variant returns
@Override
<X> EntityDomainType<X> entity(String entityName);
@Override
<X> EntityDomainType<X> entity(Class<X> cls);