-->
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: Deleting child from a collection with composite keys.
PostPosted: Thu May 02, 2013 1:34 am 
Newbie

Joined: Tue Apr 30, 2013 10:40 pm
Posts: 2
Hi,
I have a table which has one to many relationship with another table containing only of composite keys. I have all-delete-orphan on the one to many relation.

i am trying to delete a child from a collection by calling the remove statement and then setting it back. to the parent class. But I am not able to delete the the records from the table. Has anyone encountered this situation before.

Can you please tell me what the solution can be?


Top
 Profile  
 
 Post subject: Re: Deleting child from a collection with composite keys.
PostPosted: Wed May 08, 2013 3:58 am 
Newbie

Joined: Wed Mar 13, 2013 11:32 am
Posts: 16
Hi

It sounds like you are experiencing a rollback of your transaction due to runtime exception when saving the parent class
Set you logging in TRACE mode and look what happens when the transaction ends.

Br. Jesper


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.