Java 类org.springframework.data.repository.core.support.PersistentEntityInformation 实例源码

项目:spring-data-keyvalue    文件:KeyValueRepositoryFactory.java   
@Override
@SuppressWarnings("unchecked")
public <T, ID> EntityInformation<T, ID> getEntityInformation(Class<T> domainClass) {

    PersistentEntity<T, ?> entity = (PersistentEntity<T, ?>) context.getRequiredPersistentEntity(domainClass);

    return new PersistentEntityInformation<>(entity);
}