<?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: NHibernate Fact when Saving a Transient Entity with Second Level Caching Enabled.</title>
	<atom:link href="http://elegantcode.com/2008/11/23/nhibernate-fact-when-saving-a-transient-entity-with-second-level-caching-enabled/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com/2008/11/23/nhibernate-fact-when-saving-a-transient-entity-with-second-level-caching-enabled/</link>
	<description></description>
	<lastBuildDate>Wed, 17 Mar 2010 08:54:42 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Neal Blomfield</title>
		<link>http://elegantcode.com/2008/11/23/nhibernate-fact-when-saving-a-transient-entity-with-second-level-caching-enabled/comment-page-1/#comment-38173</link>
		<dc:creator>Neal Blomfield</dc:creator>
		<pubDate>Thu, 27 Nov 2008 18:57:19 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/11/23/nhibernate-fact-when-saving-a-transient-entity-with-second-level-caching-enabled/#comment-38173</guid>
		<description>Just another reason to manage your OIDs rather than letting NH assign them.

Managing your OID rather than letting NHibernate manage it actually makes like significantly simpler.  I use a base persistent entity class that assigns a guid for use as the OID and contains an integer version field so that NH can do the necessary transient / persistent checks (as well as allowing for concurrency management).

IMHO letting NH manage your IDs, while correct from a &quot;pure&quot; POV (OID is a persistence concern, not a domain concern), causes more problems than it solves.</description>
		<content:encoded><![CDATA[<p>Just another reason to manage your OIDs rather than letting NH assign them.</p>
<p>Managing your OID rather than letting NHibernate manage it actually makes like significantly simpler.  I use a base persistent entity class that assigns a guid for use as the OID and contains an integer version field so that NH can do the necessary transient / persistent checks (as well as allowing for concurrency management).</p>
<p>IMHO letting NH manage your IDs, while correct from a &#8220;pure&#8221; POV (OID is a persistence concern, not a domain concern), causes more problems than it solves.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dew Drop - November 24, 2008 &#124; Alvin Ashcraft's Morning Dew</title>
		<link>http://elegantcode.com/2008/11/23/nhibernate-fact-when-saving-a-transient-entity-with-second-level-caching-enabled/comment-page-1/#comment-37993</link>
		<dc:creator>Dew Drop - November 24, 2008 &#124; Alvin Ashcraft's Morning Dew</dc:creator>
		<pubDate>Mon, 24 Nov 2008 13:09:41 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/11/23/nhibernate-fact-when-saving-a-transient-entity-with-second-level-caching-enabled/#comment-37993</guid>
		<description>[...] NHibernate Fact When Saving a Transient Entity with Second Level Caching Enabled (Jan Van Ryswyck) [...]</description>
		<content:encoded><![CDATA[<p>[...] NHibernate Fact When Saving a Transient Entity with Second Level Caching Enabled (Jan Van Ryswyck) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reflective Perspective - Chris Alcock &#187; The Morning Brew #229</title>
		<link>http://elegantcode.com/2008/11/23/nhibernate-fact-when-saving-a-transient-entity-with-second-level-caching-enabled/comment-page-1/#comment-37985</link>
		<dc:creator>Reflective Perspective - Chris Alcock &#187; The Morning Brew #229</dc:creator>
		<pubDate>Mon, 24 Nov 2008 10:16:12 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/11/23/nhibernate-fact-when-saving-a-transient-entity-with-second-level-caching-enabled/#comment-37985</guid>
		<description>[...] NHibernate Fact when Saving a Transient Entity with Second Level Caching Enabled. - Jan Van Ryswyck highlights some specific behaviour of objects being persisted being added in the NHibernate second level cache, and the specific condition where this happens. [...]</description>
		<content:encoded><![CDATA[<p>[...] NHibernate Fact when Saving a Transient Entity with Second Level Caching Enabled. &#8211; Jan Van Ryswyck highlights some specific behaviour of objects being persisted being added in the NHibernate second level cache, and the specific condition where this happens. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
