I\'m sligthly confused as to how the cascade=\"delete\" works. I defined the mapping i开发者_运维知识库n the following way in the City mapping file:
I would 开发者_如何转开发like to create a one-to-many association that does not cascade deletes. Reading the Grails Reference it says
I\'m trying to delete an entity (ForumTopic) and have that delete the Posts (ForumPost) within it.Here are my entities:
Is there any easy way to do what seems best described as a \"Cascading Delete\" in LLBLGen?An example of what I\'m looking for:
I\'m looking into a problem, where there are two \"parent\" classes, P and Q that cascade all-delete-orphan to a \"child\" class, C. My intuition in Hibernate tells this is really a bad idea and I am
Assume Table A has two children tables, B and C with cascade delete between A-B, and cascade delete between A-C.
I have a question about cascading deletes and foreign key references: Let\'s assume the following tables:
I have the following (simplified) Hibernate entities: @Entity @Table(name = \"package\") public class Package {
I\'m struggling with a little problem and starting to arrive开发者_StackOverflow社区 at the conclusion it\'s simply not possible.
I have a table 2 tables that have a m:m relationship, what I can wanting is that when I delete a row from one of the tables I want the row in the joining table to be deleted as well, my sql is as foll