Hi,
I am totally frustrated. I can't understand what's happening there. Even if I use
Code:
HibernateUtil.shutdown();
org.hibernate.Session s = HibernateUtil.getSessionFactory().getCurrentSession();
s.beginTransaction();
Criteria crit = s.createCriteria(Rooms.class);
List<Zimmer> res = new LinkedList<Rooms>();
res = crit.list();
for (Room r : res) {
s.refresh(r);
}
s.close();
return res;
I'll get the f.... wrong (not current) data from the db. I also disabled the 2nd level cache. I don't know what to do. PLEASE any hint may help. THANKS
Jonny