-->
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: Hibernate failing to delete child entities "randomly"?
PostPosted: Sat Dec 08, 2012 10:07 am 
Newbie

Joined: Thu Nov 27, 2008 11:05 pm
Posts: 9
I am trying to track down a bug in my program where Hibernate fails to delete a child table row. In doing so, I've run into a very strange issue. My test case is simply to delete a "Contact" and all of its subsequent children in different tables. Some children are cascade delete other are manual deletes. When I run the test "normally", the test runs fine and all entities are deleted. When I run the test using my IDE debugger and step through the code line by line, some of the child entity are not deleted and thus a SQL foreign key integrity contraint results. Can someone please shed some light as to why this happens? I have inluded my log files with both scenarios using org.hibernate.* in INFO log mode and showSql=true.

A link to my log "diff": http://www.diffnow.com/?report=4tg7h

Using Hibernate Version: 4.1.8.FINAL


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.