-->
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.  [ 6 posts ] 
Author Message
 Post subject: How to use the interceptor method onCollectionUpdate ??
PostPosted: Wed Jun 04, 2008 10:17 am 
Regular
Regular

Joined: Thu Aug 28, 2003 2:42 pm
Posts: 77
Location: The Netherlands
Hi all,

I am using a hibernate interceptor to set/update the creation date and modification date of an hibernate object.

I want to do the same for associated objects (like a collection of Products of a User), but have no idea how.
The interceptor calls the method
Code:
onCollectionUpdate(Object collection, Serializable key)

for associations which I should use to update/set the field value, but I have no idea how to use this method :( (like how to see which object was modified/dirty) :(
I did some debugging, but really have no clue and can't find any usefull documentation about it.

Can someone please explain to me how to use this method ?


Thanks,
Ed
PS: I am using hibernate 3.5


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 12, 2008 4:58 pm 
Regular
Regular

Joined: Thu Aug 28, 2003 2:42 pm
Posts: 77
Location: The Netherlands
Can someone please help me out here, because there is no documentation on how to use it.... :(...
I tried to found out how it (the onCollectionUpdate method) works through debugging... but no luck...

Please some advice ?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 19, 2008 6:33 am 
Regular
Regular

Joined: Thu Aug 28, 2003 2:42 pm
Posts: 77
Location: The Netherlands
Still nobody :( ??

Interesting that the Hibernate team adds a method but without any documentation... How can I ever use it then ?

I probably can't sleep the next coming week :(


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 18, 2008 5:42 am 
Regular
Regular

Joined: Thu Aug 28, 2003 2:42 pm
Posts: 77
Location: The Netherlands
Could somebody pleaseeeeee have a look at this :( ????


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 28, 2008 7:31 pm 
Newbie

Joined: Mon Jul 28, 2008 7:27 pm
Posts: 2
I'm sorry to see there hasn't been any help on this thread. I, too, am baffled by all three collection methods. I'm propagating changes to objects to another database and these methods give no context about which object's collection was changed. Its become quite a problem for me.


Top
 Profile  
 
 Post subject: Re: How to use the interceptor method onCollectionUpdate ??
PostPosted: Mon Dec 06, 2010 10:29 am 
Newbie

Joined: Mon Dec 06, 2010 10:25 am
Posts: 1
Hi,

Here is an answer. I know it's been a long time but it's for those who will find this thread in the future.

viewtopic.php?p=2424182


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