not needed for count

This commit is contained in:
Athou
2013-05-31 16:50:30 +02:00
parent 574f75433d
commit 969e3ca0e9

View File

@@ -50,7 +50,6 @@ public class FeedDAO extends GenericDAO<Feed> {
query.select(builder.count(root));
query.where(getUpdatablePredicates(root).toArray(new Predicate[0]));
root.fetch(Feed_.pushInfo, JoinType.LEFT);
TypedQuery<Long> q = em.createQuery(query);
return q.getSingleResult();