-->
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.  [ 2 posts ] 
Author Message
 Post subject: Removing a List from L2 cache
PostPosted: Fri Dec 02, 2005 7:52 am 
Newbie

Joined: Fri Jun 10, 2005 11:25 am
Posts: 18
I know that the method "sessionFactory.evict(User.class, user.getId())" works for the objects initialized by get(class, serializable)

I need to know how to evict(..) the List stored under the key generated by session.createQuery(...)

Can it be done with Hibernate API?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 02, 2005 8:00 am 
Contributor
Contributor

Joined: Thu Nov 06, 2003 9:49 pm
Posts: 104
Location: New York, NY
Use SessionFactory.evict(), as per the documentation:

http://www.hibernate.org/hib_docs/v3/re ... ssioncache


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.