This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
They run in a JBoss application server jboss-4.2.2.GA. I have set some Hibernate-Properties in order to autgenerate the tables on deployment. It all works fine but something puzzles me: These are the two auto generated create queries for the tables:
Why is there no [b]ON DELETE CASCADE[/b] statement in the child-query?? There should be one as I have declared @OneToMany(cascade=CascadeType.REMOVE, mappedBy="parent") in the parent-entity.
Thank you for your assistance.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: autogenerating db-schema cascade=CascadeType.REMOVE but no ON DELETE CASCADE