I have an application, I have successfully persisted about 100 objects into a MySQL 5.0 database...
I want to write a servlet that will query the database and display the results..
I have read my book "Hibernate Quickly" (the book store didn't have Hibernate In Action). They talk about how to perform queries but now how to display them back. I have searched google and the forum and haven't found a way to display my results back... so far I have the following
a function called retrieve. inside retrieve I
Code:
// Build and configure the session factory
SessionFactory sf = HibernateFactory.buildSessionFactory();
// Create and open session
Session session = sf.openSession();
Query query = session.createQuery("from TaskForm");
List results = query.list();
How do I take results and display it???? Please forgive my ignorance.