-->
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.  [ 2 posts ] 
Author Message
 Post subject: no callback when updating relationship 1-n
PostPosted: Mon Jul 20, 2009 5:12 am 
Newbie

Joined: Mon Jul 20, 2009 4:16 am
Posts: 2
Hi,

As I did'nt found answer in forum, here my issue.

I have two entites Payment and Remittance.
Remittance has a @OneToMany relation with Payment (unidirectional relationship).
I defined a Class as @Entitylistener which intercepts @Prepersist, @Postpersist, @Preupdate, @Postupdate, @Preremove, @PostRemove.

When on already existing Remittance, I just add an already existing Payment, no callback methods are called and database is correctly updated.

What's wrong ?

Thanks.

Pierre45


Top
 Profile  
 
 Post subject: Re: no callback when updating relationship 1-n
PostPosted: Mon Jul 20, 2009 11:30 am 
Newbie

Joined: Mon Jul 20, 2009 4:16 am
Posts: 2
Hi,

I've just tested this with OpenJPA and callback are called.
JSR220 doesn't explain in detail what should be the awaited behavior.

So shoud this consider as a bug ?


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