These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Supprimer ce message svp il est redondant avec d'autre post)
PostPosted: Mon Nov 05, 2007 2:05 am 
Newbie

Joined: Mon Nov 05, 2007 1:52 am
Posts: 9
Bonjour à tous,

J'ai repris un projet d'entreprise sur hibernate et struts et après avoir fais un peu le ménage dans le code je me retrouve avec une erreur assez gênante :
après avoir modifier un élément lorsque je rafraichi plusieurs fois la page je me retrouve aléatoirement avec l'ancienne valeur ou la nouvelle. Pourtant l'objet a bien été modifié en base.
Lorsque je regarde (en mode débug) l'élément récupéré par un session.load, c'est cet élément qui varie.

Il s'agit surement d'un problème de cache, mais je n'arrive pas à le cerner. Si quelqu'un a une idée?

Peut être faut-il une séquence spécial de session.flush(), session.clear() ... ?

Merci d'avance.
Bonne journée


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.