gemire / daofusion

Automatically exported from code.google.com/p/daofusion
0 stars 1 forks source link

Add countAll() methods to PersistentEntityDao #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We already have getAll() methods defined in PersistentEntityDao:

public <S extends T> List<S> getAll(Class<S> targetEntityClass);
public List<T> getAll();

For consistency, we should also add corresponding countAll() methods.
Currently, count() can be performed only via PersistentEntityCriteria.

Original issue reported on code.google.com by Vojtech....@gmail.com on 21 May 2009 at 9:34

GoogleCodeExporter commented 9 years ago
countAll method declarations, their implementation as well as the test case
(AbstractHibernateEntityDaoTest#testCountAll) committed into the trunk.

Original comment by Vojtech....@gmail.com on 15 Jun 2009 at 9:31