<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How To: NHibernate Parent/Child Relationships</title>
	<atom:link href="http://dustyreagan.com/how-to-nhibernate-parentchild/feed/" rel="self" type="application/rss+xml" />
	<link>http://dustyreagan.com/how-to-nhibernate-parentchild/</link>
	<description>On Technology &#38; Entrepreneurship</description>
	<lastBuildDate>Thu, 29 Jul 2010 23:29:01 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: garth engdahl</title>
		<link>http://dustyreagan.com/how-to-nhibernate-parentchild/comment-page-1/#comment-82</link>
		<dc:creator>garth engdahl</dc:creator>
		<pubDate>Fri, 01 May 2009 17:05:16 +0000</pubDate>
		<guid isPermaLink="false">http://dev.dustyreagan.com/?p=40#comment-82</guid>
		<description>hmm. my example of the mapping appears to have been eaten in the previous post. here it is again...

    &lt;!-- Many-to-One Foreign Key Association: Organization --&gt;
    &lt;!-- Save Foreign Key reference, but don&#039;t cascade update/deletes --&gt;
</description>
		<content:encoded><![CDATA[<p>hmm. my example of the mapping appears to have been eaten in the previous post. here it is again&#8230;</p>
<p>    &lt;!&#8211; Many-to-One Foreign Key Association: Organization &#8211;&gt;<br />
    &lt;!&#8211; Save Foreign Key reference, but don&#8217;t cascade update/deletes &#8211;&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: garth engdahl</title>
		<link>http://dustyreagan.com/how-to-nhibernate-parentchild/comment-page-1/#comment-81</link>
		<dc:creator>garth engdahl</dc:creator>
		<pubDate>Fri, 01 May 2009 17:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://dev.dustyreagan.com/?p=40#comment-81</guid>
		<description>a related question. we have a parent/child relationship set up between class A and class B.
class B has a back-pointer to it&#039;s parent - parentA. the mapping for the property in Class B looks like this (sorry for the formatting)...



As can see, cascade is set to &quot;none&quot;. So i assumed that when we saved an instance of the child class B nothing would happen to the parent object A. Ah, but it turns out that if you update the instance of class A which is hanging off of class B and the update class B the change to A is persisted to the database and the version number on class A is incremented. Sort of exactly the same behaviour i would have expected if cascase=&quot;true&quot;.  Any thoughts on why this is happening, anyone?
thanks,
Garth Engdahl</description>
		<content:encoded><![CDATA[<p>a related question. we have a parent/child relationship set up between class A and class B.<br />
class B has a back-pointer to it&#8217;s parent &#8211; parentA. the mapping for the property in Class B looks like this (sorry for the formatting)&#8230;</p>
<p>As can see, cascade is set to &#8220;none&#8221;. So i assumed that when we saved an instance of the child class B nothing would happen to the parent object A. Ah, but it turns out that if you update the instance of class A which is hanging off of class B and the update class B the change to A is persisted to the database and the version number on class A is incremented. Sort of exactly the same behaviour i would have expected if cascase=&#8221;true&#8221;.  Any thoughts on why this is happening, anyone?<br />
thanks,<br />
Garth Engdahl</p>
]]></content:encoded>
	</item>
</channel>
</rss>
