This content has been marked as final.
Show 2 replies
-
1. Re: Deleting child entries in a one-to-many relationship
triathlon98 Apr 18, 2004 11:58 AM (in response to davout)You just have to remove the items from the collection. This will remove the link at the DB level. However, this will probably generate one SQL statement for each link which is being cut.
Joachim -
2. Re: Deleting child entries in a one-to-many relationship
davout Apr 18, 2004 12:05 PM (in response to davout)You mean like...
aParent.getChildren().clear();
... or what?
I've tried that and the child DB entries are not deleted."triathlon98" wrote:
You just have to remove the items from the collection. This will remove the link at the DB level. However, this will probably generate one SQL statement for each link which is being cut.
Joachim