I made a number of small changes to get my example working on HSQL with cascading deletes, then when I switched back to MySQL cascading deletes worked there as well!
So yes, cascading deletes work on MySQL.
I'd like my example to be using Hybernate in the best way possible (under the constraints of DAO), so if you guys see any other problems in my code please let me know. I'll post a revised version once I get more feedback from the Castor folks.
Thanks for your help.
- Dave
David M. Johnson wrote:
I tried adding the cascade="delete" attribute that you mentioned and the parent.getChildren().add(child) idiom, but when I did I got some strange behavior. When the removeObject(feed) call was made, the Newsfeed was deleted by the Items that refer to the feed were not deleted. Instead, all of the items had their newsfeed_id fields cleared.
I'm on MySQL, does cascading delete work on MySQL?
- Dave
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
