Por que na linha createQuery da erro qdo coloco o where ???
abs
public List listaTodosUsuario(){
EntityTransaction transaction = manager.getTransaction();
List lista = new ArrayList(0);
try{
Query q = manager.createQuery("select object(u) from Usuario u where c.id > :cod" )
.setParameter("cod", "10");
lista = q.getResultList();
}catch(Exception e){
System.out.println("Erro ="+e);
}
return lista;
}
}
Erro =java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager