-->
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: casting to PersistentCollection
PostPosted: Tue Feb 17, 2004 2:08 am 
Beginner
Beginner

Joined: Sun Oct 26, 2003 11:21 pm
Posts: 27
It looks to me like the the collection snapshot that can be obtained by casting a collection to PersistentCollection is taken every time the session is flushed and is a record of the state of the collection right before it was updated.

I need the record of the state of the collection before it was updated, so I'm wondering if a) I'm right about the use of the collection snapshot and b) the snapshot functionality is likely to change soon.

Thanks very much,
Hans


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 17, 2004 4:28 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Do NOT do this. I change internal Hibernate interfaces whenever I feel like it!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 17, 2004 1:46 pm 
Beginner
Beginner

Joined: Sun Oct 26, 2003 11:21 pm
Posts: 27
Ok, thanks. Is there any good way to get the pre-update state of a collection (the state at the last load/flush) from within Interceptor.onFlushDirty/onDelete? Obviously I can save the state myself in onLoad and postFlush but that would take some extra memory that I though I might be able to save.

Hans


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.