-->
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: Best practice for removing from filtered associations?
PostPosted: Mon Jul 04, 2005 8:25 am 
Beginner
Beginner

Joined: Sat Jan 22, 2005 9:11 am
Posts: 35
Location: London
The scenario:

- Load a collection through filter F using session.enableFilter().

- Modify an object O of that collection so that F would now be false for that object.

The question:

Without closing the session or calling refresh, I now want subsequent accesses to the collection to not include O. What is the best practice method to achieve this? The problem is that I cannot just remove O from the collection because Hibernate will then issue a physical delete.

Logically, O has only been removed from the collection with respect to the current filter condition.

Thanks in advance for any advice,

Ben


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.