Just an update. If I update the code using the JPA entities to remove all the references for the items about to be removed, then my test cases all pass.
So, I guess my original questions are still there, though. I was under the impression that using cascaseType.REMOVE would cascade remove calls to the child items. Is the default to perform this after the parent item is removed? Also, am I setting up the @PreRemove call wrong? It's a bit of a worry that it didn't seem to get called (from what I can tell.... I'll accept I may be doing something wrong. :) )
Thanks for any info,
Ed
[Message sent by forum member 'edh' (edh)]
http://forums.java.net/jive/thread.jspa?messageID=221610