-->
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.  [ 3 posts ] 
Author Message
 Post subject: insert/update/delete (DML) outside Hibernate-refresh cache?
PostPosted: Mon Jan 09, 2006 5:16 pm 
Expert
Expert

Joined: Mon Jan 09, 2006 5:01 pm
Posts: 311
Location: Sacramento, CA
Hello,

Quick question - what is the best way to handle the following scenario:

If I do a insert/update/delete - I'd like to invalidate the hibernate cache for that object (or possibly set of objects) so they refresh themselves prior to next usage...

Thanks!

-JT


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 09, 2006 5:20 pm 
Expert
Expert

Joined: Mon Jan 09, 2006 5:01 pm
Posts: 311
Location: Sacramento, CA
for clarity sake - I meant to say that the insert/update/delete are done outside of Hibernate, by someone directly accessing the database, either from a java program (possibly in same jvm as hibernate objects), or from a program like TOAD, or Oracle's SQLPLUS..etc.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 09, 2006 5:27 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
There are methods on SessionFactory for that.


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

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.