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
|