-->
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: Event Listener firing in a parent-child relation
PostPosted: Mon Sep 04, 2006 7:23 am 
Newbie

Joined: Mon Sep 04, 2006 7:16 am
Posts: 2
Hi All,

I am currently using Hibernate 3.1.3. I have a query with regard to the event listeners which one can configure in hibernate. I have a parent-child class mapping defined in the configuration XML. The parent has a set of child collection and each child class has a many-to-one reference of its associated parent.

Using Hibernate session/transaction APIs I update an attribute of the parent by getting a handle to the reference contained in the child. However hibernate fires the update event only on the parent not on the child class which was used for updating the parent reference.

I suppose this is the default behaviour. Any suggestions on how I can force Hibernate to fire the update event on the child class to update the linkage..?

Thanks.


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.