-->
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: Problem with event layer and cascade="save-update"
PostPosted: Fri Jan 04, 2008 9:41 am 
Newbie

Joined: Tue Aug 28, 2007 3:35 pm
Posts: 7
Hi,

We use the new Hibernate event layer to add additional data to our objects before they are saved. Tpically we use an object that extends DefaultSaveOrUpdateEventListener.

This works fine when explicitly saving objects, but not when a save comes about as a result of a cascade save via a relationship. In this instance, our event listener never gets called.

We have tried events "save-update", "save", "update" and "create" but none of these are called when an object is saved due to a cascade.

Please advise - is there any way to catch the event that an insert or update is occurring as a result of a cascade save?


Thanks,
cjsceats


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.