Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Name and version of the database you are using: Mysql 5
Hello!
and So...I'm using Hiberbate API to deal with database data
and The Tomcat web server to deploy my app, my page shows
a database data list, the problem is when I reload (click
on the browser button or on the originated link) the page
the data just vanish, I don't know the why.have
you any suggestion?
my page.jsf :
Code:
.
.
.
<%
try{
HibBean data = new HibBean();
Iterator i = data.getList().iterator();
Session sessionH = HibernateUtil.getSessionFactory().getCurrentSession();
sessionH.beginTransaction();
.
.
(show data from database)
.
.
HibernateUtil.getSessionFactory().close();
.
.
.
Thanks!