<?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"
	>
<channel>
	<title>Comments on: A Cool New Dejavu Feature</title>
	<atom:link href="http://blog.dowski.com/2006/11/18/a-cool-new-dejavu-feature/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dowski.com/2006/11/18/a-cool-new-dejavu-feature/</link>
	<description>Unfortunately, Christian had a Thwart, and the Magpie stayed in play.</description>
	<pubDate>Wed, 20 Aug 2008 03:13:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Robert Brewer</title>
		<link>http://blog.dowski.com/2006/11/18/a-cool-new-dejavu-feature/#comment-66244</link>
		<dc:creator>Robert Brewer</dc:creator>
		<pubDate>Sun, 19 Nov 2006 04:00:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dowski.com/?p=193#comment-66244</guid>
		<description>Yep, assuming you're happy with an association in one direction only.</description>
		<content:encoded><![CDATA[<p>Yep, assuming you&#8217;re happy with an association in one direction only.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: christian</title>
		<link>http://blog.dowski.com/2006/11/18/a-cool-new-dejavu-feature/#comment-66239</link>
		<dc:creator>christian</dc:creator>
		<pubDate>Sun, 19 Nov 2006 02:36:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dowski.com/?p=193#comment-66239</guid>
		<description>Ah, thanks for that tip.  So, in my example above, the descriptor created with EventHostAssociation would be replaced with:

descriptor = dejavu.ToOne('HostID', Contact, 'ID')
descriptor.nearClass = Event
Event._associations['Event Host'] = Event.Host = descriptor

Does that look right?</description>
		<content:encoded><![CDATA[<p>Ah, thanks for that tip.  So, in my example above, the descriptor created with EventHostAssociation would be replaced with:</p>
<p>descriptor = dejavu.ToOne(&#8217;HostID&#8217;, Contact, &#8216;ID&#8217;)<br />
descriptor.nearClass = Event<br />
Event._associations['Event Host'] = Event.Host = descriptor</p>
<p>Does that look right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Brewer</title>
		<link>http://blog.dowski.com/2006/11/18/a-cool-new-dejavu-feature/#comment-66228</link>
		<dc:creator>Robert Brewer</dc:creator>
		<pubDate>Sat, 18 Nov 2006 23:04:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dowski.com/?p=193#comment-66228</guid>
		<description>Great writeup! And thanks for the contribution. :)

Incidentally, in your (stripped-down) example, you don't need the EventHostAssociation subclass at all--just use ToOne. You only need a custom subclass if you're using some kind of derivative value to do the mapping (as opposed to the normal nearKey -&#62; farKey comparison).</description>
		<content:encoded><![CDATA[<p>Great writeup! And thanks for the contribution. <img src='http://blog.dowski.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Incidentally, in your (stripped-down) example, you don&#8217;t need the EventHostAssociation subclass at all&#8211;just use ToOne. You only need a custom subclass if you&#8217;re using some kind of derivative value to do the mapping (as opposed to the normal nearKey -&gt; farKey comparison).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
