-->
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: Update collection listener while updating collection's entit
PostPosted: Sun Sep 07, 2008 9:46 am 
Newbie

Joined: Sun Sep 07, 2008 9:32 am
Posts: 4
Hibernate version: 3.2.6

Hi,

I'm using the interface PostCollectionUpdateEventListener to log changes in object's collection.
The listener is invoked when I add or remove an entity from the collection.
The listener is not being invoked while I'm updating an entity in the collection.
The listener that is being invoked here is PostUpdateEventListener, while I expected from the collection listener (PostCollectionUpdateEventListener) to be invoked due to changein an entity inside the collection.

Just to demonstrate the case, let say we have Order which has set of Item.
If I add a new Item to the Order's set the listener is invoked.
If I remove an Item from the Order's set the listener is invoked.
If I update an exists Item inside the Order's set the listener is NOT invoked.

Is it a known issue? Is it supposed to be like that?
Any solution for my case?



Thanks,
Iram

_________________
Iram Lewinger
Software Engineer
Cisco


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.