Groups
Groups
Sign in
Groups
Groups
appweb2
Conversations
About
Send feedback
Help
Ayuda
0 views
Skip to first unread message
Josue Serrano
unread,
Apr 3, 2011, 10:00:26 PM
4/3/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to appweb2
ME MARCA UN illegal start of type EN EL WHILE, ALGUIEN QUE SEPA EL POR
QUE?
package consultas;
import Util.NewHibernateUtil;
import java.util.Iterator;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import hibernateMapping.City;
/**
*
* @author fusko
*/
public class selectCity {
int i=0;
Session sesionCity =
NewHibernateUtil.getSessionFactory().openSession();
Query cityLista = sesionCity.createQuery("from
hibernateConfiguration.City as c ");
List resultados
= cityLista.list();
Iterator iterator =
resultados.iterator();
while( iterator.hasNext() ){
City city = (City) iterator.next();
System.out.println((i++) +" c: "+city.getName());
}
}
Reply all
Reply to author
Forward
0 new messages