Example usage for org.hibernate.tuple.entity EntityMetamodel getEntityType

List of usage examples for org.hibernate.tuple.entity EntityMetamodel getEntityType

Introduction

In this page you can find the example usage for org.hibernate.tuple.entity EntityMetamodel getEntityType.

Prototype

public EntityType getEntityType() 

Source Link

Usage

From source file:com.corundumstudio.hibernate.dsc.QueryCacheEntityListener.java

License:Apache License

private Set<Entry<String, QueryListenerEntry>> getValue(EntityPersister persister) {
    EntityMetamodel entityMetamodel = persister.getEntityMetamodel();
    Class<?> clazz = entityMetamodel.getEntityType().getReturnedClass();
    Map<String, QueryListenerEntry> values = map.get(clazz);
    if (values == null) {
        return Collections.emptySet();
    }// w ww. j av  a 2s. c  o  m
    return values.entrySet();
}