-->
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: OneToMany + JoinTable + orphanRemoval doesn't delete orphan
PostPosted: Wed Jan 23, 2013 8:11 am 
Newbie

Joined: Wed Jan 23, 2013 7:59 am
Posts: 2
Hi there,

I'm using Hibernate 3.6.10 with Hibernate + JPA annotations. I'm having serious problems when updating a detached object modified in client. The idea is to remove a phone number from a user (who has a set of phone numbers). The problem is that the phone is not deleted even with orphanRemoval is set to true. I've been messing with this and I havne't a hint on this, even in Stackoverflow. Please, let me put the link to the question, so get all the info together:

http://stackoverflow.com/questions/14457716/hibernate-3-6-10-doesnt-cascade-delete-through-onetomany-jointable


Best regards


Top
 Profile  
 
 Post subject: Re: OneToMany + JoinTable + orphanRemoval doesn't delete orphan
PostPosted: Thu Jan 24, 2013 7:47 am 
Newbie

Joined: Wed Jan 23, 2013 7:59 am
Posts: 2
Ok, so it seems to be not possible to get orphanRemoval on detached entity which has a collection, recieved in JSON format cause the persistence is running under webservices?


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.