List<FeedReaderUrlCount> feedList = new LinkedList<FeedReaderUrlCount>();
List<Object[]> results = (List<Object[]>) q.getResultList();
for (Object[] result : results)
{
FeedReaderUrlCount resultItem = new FeedReaderUrlCount();
resultItem.setUrl((String) result[0]);
resultItem.setCount((Long) result[1]);
resultItem.setFeedTitle((String) result[2]);
feedList.add(resultItem);
}
return feedList;
}