Pessoal fazer uma pesquisa no banco e retornar uma lista com todos meus dados, mais esta dando erro
Session session = HibernateUtility.getSession();
Transaction tx = session.beginTransaction();
HistoryTagsDAO htdao = new HistoryTagsDAO(session);
List list = new List();
list = (HistoryTags)htdao.queryAll();
...
alguem pode me ajudar?