Hi!
I have the following code in a method :
Code:
session.beginTransaction();
List recherche = session.createCriteria(Histoire.class)
.add(Restrictions.eq("membre",this.getIdMembre()))
.list();
for(int i=0;i<recherche.size();i++){
Histoire histoire = (Histoire) recherche.get(i);
this.histoires.add(histoire);
System.out.println(histoire.getTheme() + " " + histoire.getDetail());
return this.histoires;
The problem is that when I call and recall this method within a session, the console displays a query from hibernate, but I alway get the same results, even if my table content has changed!
Would that be a cache problem? How can I solve this trouble?
Hibernate version: 3.1.3
Name and version of the database you are using: MySQL 4
The generated SQL (show_sql=true):Code:
Hibernate: select this_.idHistoire as idHistoire3_0_, this_.Membre_idMembre as Membre2_3_0_ from Histoire this_ where this_.Membre_idMembre=?