<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Clean code: Register additional event listeners in NHibernate</title>
	<atom:link href="http://blog.caraulean.com/2009/09/02/clean-code-register-additional-event-listeners-in-nhibernate/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.caraulean.com/2009/09/02/clean-code-register-additional-event-listeners-in-nhibernate/</link>
	<description>Keep it simple. It will work...</description>
	<lastBuildDate>Fri, 10 Feb 2012 04:38:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: mazhou blog</title>
		<link>http://blog.caraulean.com/2009/09/02/clean-code-register-additional-event-listeners-in-nhibernate/#comment-486</link>
		<dc:creator><![CDATA[mazhou blog]]></dc:creator>
		<pubDate>Tue, 29 Nov 2011 04:01:15 +0000</pubDate>
		<guid isPermaLink="false">http://varely.wordpress.com/2009/09/02/clean-code-register-additional-event-listeners-in-nhibernate/#comment-486</guid>
		<description><![CDATA[&lt;strong&gt;mazhou blog...&lt;/strong&gt;

[...]Clean code: Register additional event listeners in NHibernate &#171; Valeriu Caraulean[...]...]]></description>
		<content:encoded><![CDATA[<p><strong>mazhou blog&#8230;</strong></p>
<p>[...]Clean code: Register additional event listeners in NHibernate &laquo; Valeriu Caraulean[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yong Bursey</title>
		<link>http://blog.caraulean.com/2009/09/02/clean-code-register-additional-event-listeners-in-nhibernate/#comment-232</link>
		<dc:creator><![CDATA[Yong Bursey]]></dc:creator>
		<pubDate>Tue, 01 Feb 2011 02:15:27 +0000</pubDate>
		<guid isPermaLink="false">http://varely.wordpress.com/2009/09/02/clean-code-register-additional-event-listeners-in-nhibernate/#comment-232</guid>
		<description><![CDATA[Hi there! I just wish to give a huge thumbs up for the great data you may have right here on this post. I might be coming again to your weblog for extra soon.]]></description>
		<content:encoded><![CDATA[<p>Hi there! I just wish to give a huge thumbs up for the great data you may have right here on this post. I might be coming again to your weblog for extra soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: felipe</title>
		<link>http://blog.caraulean.com/2009/09/02/clean-code-register-additional-event-listeners-in-nhibernate/#comment-48</link>
		<dc:creator><![CDATA[felipe]]></dc:creator>
		<pubDate>Tue, 10 Nov 2009 15:10:47 +0000</pubDate>
		<guid isPermaLink="false">http://varely.wordpress.com/2009/09/02/clean-code-register-additional-event-listeners-in-nhibernate/#comment-48</guid>
		<description><![CDATA[clean code all]]></description>
		<content:encoded><![CDATA[<p>clean code all</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo Peres</title>
		<link>http://blog.caraulean.com/2009/09/02/clean-code-register-additional-event-listeners-in-nhibernate/#comment-40</link>
		<dc:creator><![CDATA[Ricardo Peres]]></dc:creator>
		<pubDate>Wed, 09 Sep 2009 10:54:37 +0000</pubDate>
		<guid isPermaLink="false">http://varely.wordpress.com/2009/09/02/clean-code-register-additional-event-listeners-in-nhibernate/#comment-40</guid>
		<description><![CDATA[Thanks for your reply!
Yes, I know what you mean, and I wouldn&#039;t do it in real-life scenarios, I just wanted find out if it can be done. I came up to interceptors, and the IInterceptor.OnLoad event, but I can&#039;t cancel it...]]></description>
		<content:encoded><![CDATA[<p>Thanks for your reply!<br />
Yes, I know what you mean, and I wouldn&#8217;t do it in real-life scenarios, I just wanted find out if it can be done. I came up to interceptors, and the IInterceptor.OnLoad event, but I can&#8217;t cancel it&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valeriu Caraulean</title>
		<link>http://blog.caraulean.com/2009/09/02/clean-code-register-additional-event-listeners-in-nhibernate/#comment-39</link>
		<dc:creator><![CDATA[Valeriu Caraulean]]></dc:creator>
		<pubDate>Wed, 09 Sep 2009 07:46:31 +0000</pubDate>
		<guid isPermaLink="false">http://varely.wordpress.com/2009/09/02/clean-code-register-additional-event-listeners-in-nhibernate/#comment-39</guid>
		<description><![CDATA[I&#039;m not sure you can achieve that by using an event listener.

What about &quot;removing&quot; items from a list before making it available to the rest of application I think it&#039;s not a good idea: you&#039;re loading thousands of rows from database to filter only hundreds of it? Why don&#039;t do that directly in database?
From the top of my mind you can use two things: 
 - using filters &amp; setting them to filter rows
 - enrich your queries, so that you&#039;ll get back from database only relevant rows
For second approach take a look how it&#039;s done in Rhino.Security (&lt;a href=&quot;http://ayende.com/Blog/archive/2008/01/25/Rhino-Security-External-API.aspx&quot; rel=&quot;nofollow&quot;&gt;his API&lt;/a&gt;). It&#039;s a great example how you can create a flexible security infrastructure with NHibernate.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure you can achieve that by using an event listener.</p>
<p>What about &#8220;removing&#8221; items from a list before making it available to the rest of application I think it&#8217;s not a good idea: you&#8217;re loading thousands of rows from database to filter only hundreds of it? Why don&#8217;t do that directly in database?<br />
From the top of my mind you can use two things:<br />
 &#8211; using filters &amp; setting them to filter rows<br />
 &#8211; enrich your queries, so that you&#8217;ll get back from database only relevant rows<br />
For second approach take a look how it&#8217;s done in Rhino.Security (<a href="http://ayende.com/Blog/archive/2008/01/25/Rhino-Security-External-API.aspx" rel="nofollow">his API</a>). It&#8217;s a great example how you can create a flexible security infrastructure with NHibernate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo Peres</title>
		<link>http://blog.caraulean.com/2009/09/02/clean-code-register-additional-event-listeners-in-nhibernate/#comment-37</link>
		<dc:creator><![CDATA[Ricardo Peres]]></dc:creator>
		<pubDate>Tue, 08 Sep 2009 18:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://varely.wordpress.com/2009/09/02/clean-code-register-additional-event-listeners-in-nhibernate/#comment-37</guid>
		<description><![CDATA[Interesting. Is it possible to cancel the default processing using an event listener?
For example, suppose I&#039;m loading a list of entities, but I want to remove some of them from the list, for example, because the current user is not authorized to access them. Is this possible?]]></description>
		<content:encoded><![CDATA[<p>Interesting. Is it possible to cancel the default processing using an event listener?<br />
For example, suppose I&#8217;m loading a list of entities, but I want to remove some of them from the list, for example, because the current user is not authorized to access them. Is this possible?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

