<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : WillCascadeOnDelete and deletion of loaded related entities</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2012 : WillCascadeOnDelete and deletion of loaded related entities</description>
  <pubDate>Thu, 14 May 2026 10:47:14 -700</pubDate>
  <lastBuildDate>Tue, 28 May 2013 11:16:31 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=4165</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>WillCascadeOnDelete and deletion of loaded related entities : Kdev,  That is by design.  You...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4165&amp;PID=16391#16391</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 4165<br /><strong>Posted:</strong> 28-May-2013 at 11:16am<br /><br />Kdev,<br /><br />That is by design.<br /><br />You mentioned:<br /><em>I think that the "normal" behaviour should be to always have a single delete command when deleting an entity. <br />If the related entities were loaded in the manager, they should be detached from the manager and not explicitly deleted, because this cause multiple useless delete commands to be executed (with 1000+ related entities the performance quickly degrades).</em><br /><br />If the cascading delete was set on the model, but not on the DB; the save call with the single delete would fail. <br />For this reason, the child entities are marked for deletion as well.<br /><br />You will find more information about cascading deletes at <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/save-cascaded-deletes" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/save-cascaded-deletes</a>]]>
   </description>
   <pubDate>Tue, 28 May 2013 11:16:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4165&amp;PID=16391#16391</guid>
  </item> 
  <item>
   <title>WillCascadeOnDelete and deletion of loaded related entities : I have an issue when deleting...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4165&amp;PID=16388#16388</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1623" rel="nofollow">kdev</a><br /><strong>Subject:</strong> 4165<br /><strong>Posted:</strong> 28-May-2013 at 9:42am<br /><br />I have an issue when deleting an entity that have related entities (of a relationship configured to be cascade deleted) loaded. <br /><br />DevForce deletes each related entity before deleting the root, if those entities were not loaded, the delation of the root entity generates a single delete command on the database.<br /><br />I think that the "normal" behaviour should be to always have a single delete command when deleting an entity. <br />If the related entities were loaded in the manager, they should be detached from the manager and not explicitly deleted, because this cause multiple useless delete commands to be executed (with 1000+ related entities the performance quickly degrades).<br /><br />Is this "by design" ? <span style="font-size:10px"><br /><br />Edited by kdev - 28-May-2013 at 9:43am</span>]]>
   </description>
   <pubDate>Tue, 28 May 2013 09:42:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4165&amp;PID=16388#16388</guid>
  </item> 
 </channel>
</rss>