I'd like to write a generic method in JPA 2 that can load all entities of class T
if it is given the collection of their primary keys. Here is the signature of the desired method:
public <T> List<T> getEntityList(final Class<T> entityClass, final Collection<Object> primaryKeys)
Is it possible somehow even if I don't know the entity class nor the primary key class?