-->
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: Force Reload of Named Query
PostPosted: Mon Jan 24, 2011 5:03 pm 
Newbie

Joined: Mon Jan 24, 2011 4:56 pm
Posts: 1
I have a log in process that locks user accounts if security questions are not answered properly.
If a user account gets locked , I update the db ( outside of the application ) to unlock the user. If the user tries to log back in before their session has timed out....Hibernate fetches the stale user Object via a named query. How do I force a refresh - direct db read so the User object is refreshed??
I tried query hints, but understand this addresses 2nd level cache? and it didn't work. I tried invalidating the http session to remove any saved data there, I need a similar operation for Hibernate to clear the User Object??


Anyone?

I am trying to force a fresh user object read for one named query.

Thanks for you help.


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.