-->
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: Hibernate EventListener for change to associated entities
PostPosted: Thu May 17, 2007 3:15 pm 
Newbie

Joined: Wed Aug 09, 2006 5:26 am
Posts: 2
Hi all. I'm trying to write a Hibernate EventListener that is called not just when the properties of an entity change, but also when a set of associated entities changes.

The situation is that the contents of an association's PersistentBag are being modified during the session, and then the entity is being saved. At this point there is no callback to the PostUpdateEventListener. If, however, I change a property (like a String name) then the listener is called back OK.

My question is, how can I write a listener that is invoked both when the properties *or* the set of associated entities changes?


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.