Hibernate version: hibernate-3.2.4
Name and version of the database you are using: mysql
Hi, i have this code:
Code:
Session session = HibernateUtil.getSessionFactory().getCurrentSession();
session.beginTransaction();
List s = session.createQuery("from Schedule").list();
session.getTransaction().commit();
for (int i = 0; i < s.size(); i++) {
Schedule xx = (Schedule) s.get(i); //HERROR HERE
System.out.println("End: " + ss.getEndTime() +
" Start: " + ss.getStartTime());
}
The error is in
Schedule xx = (Schedule) s.get(i); any idea why this donĀ“t work? the list s have the values, the cicle work fine, but
Schedule xx = (Schedule) s.get(i); dont work!!!
Any Help please!