this is the article i'm trying to follow:
tutorial-create-autocomplete-feature-with-java-jsp-jquery
This is how my hibernate code look like:
List<Pazienti> taList = sessionh.createQuery("from Pazienti").list();
Iterator<Pazienti> itr = taList.iterator();
while (itr.hasNext()) {
Pazienti ta = itr.next();
while (itr.hasNext()) {
String surn = ta.getPaz_cognome();
PrintStream out = null;
out.println(surn);
}
}
Unfortunately I'm getting something like this:
net.lupo.contact.model.Pazienti@9c939
how do I have to iterate on the list to retrieve a list of username like this ?
Andrew
Alan
Antony
mark