Retornando uma lista

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?

Qual é exatamente o erro???

Esse List ai não é a interface List que estende de Collection não, né??? Pois uma interface não pode ser instanciada…

Qual o erro que está dando??
Se vc estiver usando eclipse pega o plugin hibernate Tools no site do hibernate q ele te ajuda bastante.

Cannot instantiate the type list

ele diz q eu não posso intanciar meu tipo list

Coloca a linha do codigo q está dando erro.

Foi o que eu falei, List é uma interface, e interfaces NÃO podem ser instanciadas.

No lugar de List use LinkedList ou ArrayList…

Pode ser assim:

List list = new LinkedList();

ou

List list = new ArrayList();

ou

LinkedList list = new LinkedList();

ou

ArrayList list = new ArrayList();