<?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: Fluent NHibernate: Auto Mapping Components</title>
	<atom:link href="http://jagregory.com/writings/fluent-nhibernate-auto-mapping-components/feed/" rel="self" type="application/rss+xml" />
	<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-components/</link>
	<description>Monkeying with the code</description>
	<lastBuildDate>Tue, 29 Jun 2010 13:30:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Charles</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-components/comment-page-1/#comment-27917</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Fri, 17 Jul 2009 08:41:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=222#comment-27917</guid>
		<description>Oops.  I see your addendum above....

jagregory says &quot;done&quot;....</description>
		<content:encoded><![CDATA[<p>Oops.  I see your addendum above&#8230;.</p>
<p>jagregory says &#8220;done&#8221;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-components/comment-page-1/#comment-27916</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Fri, 17 Jul 2009 08:39:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=222#comment-27916</guid>
		<description>I&#039;ve a need for  multiple references to a component &quot;Measurement&quot;.  Have you implemented this change you mention here?

BR
Charles

&quot;James Gregory wrote:

@Gabriel: Good question! Currently not possible. I guess I’ll need to amend the convention to pass in the property info too.
Posted 20 Jan 2009 at 10:43 pm ¶ &quot;</description>
		<content:encoded><![CDATA[<p>I&#8217;ve a need for  multiple references to a component &#8220;Measurement&#8221;.  Have you implemented this change you mention here?</p>
<p>BR<br />
Charles</p>
<p>&#8220;James Gregory wrote:</p>
<p>@Gabriel: Good question! Currently not possible. I guess I’ll need to amend the convention to pass in the property info too.<br />
Posted 20 Jan 2009 at 10:43 pm ¶ &#8220;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike kidder</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-components/comment-page-1/#comment-15676</link>
		<dc:creator>mike kidder</dc:creator>
		<pubDate>Wed, 04 Feb 2009 00:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=222#comment-15676</guid>
		<description>I recently jumped back into NHibernate (after long hiatus) seeing alot of good chatter in the various blogs regarding Fluent NHibernate.  I have also started looking into SharpArchitecture, and your series of posts have been very timely.  With the ability to use AutoPersistenceModel and AutoMap together along with Sharp&#039;s code generation templates (tt) is a very powerful combination.  

Thanks again for your posts!!</description>
		<content:encoded><![CDATA[<p>I recently jumped back into NHibernate (after long hiatus) seeing alot of good chatter in the various blogs regarding Fluent NHibernate.  I have also started looking into SharpArchitecture, and your series of posts have been very timely.  With the ability to use AutoPersistenceModel and AutoMap together along with Sharp&#8217;s code generation templates (tt) is a very powerful combination.  </p>
<p>Thanks again for your posts!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Gregory</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-components/comment-page-1/#comment-15313</link>
		<dc:creator>James Gregory</dc:creator>
		<pubDate>Wed, 21 Jan 2009 20:33:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=222#comment-15313</guid>
		<description>You probably need to use autoMap.Component rather than Map for Address, as map just creates a property.</description>
		<content:encoded><![CDATA[<p>You probably need to use autoMap.Component rather than Map for Address, as map just creates a property.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Marisic</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-components/comment-page-1/#comment-15312</link>
		<dc:creator>Chris Marisic</dc:creator>
		<pubDate>Wed, 21 Jan 2009 20:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=222#comment-15312</guid>
		<description>James,

Is there anyway to alter the mapping of the component? Where I&#039;m trying to use my component it&#039;s not a perfect name to name match.

I tried:
                .ForTypesThatDeriveFrom(autoMap =&gt;
                                                      {
                                                          autoMap.Map(p =&gt; p.Street, &quot;Address&quot;);
                                                          autoMap.Map(p =&gt; p.State, &quot;Region&quot;);
                                                      })

Where Address is my component but I think that makes AutoMap believe it&#039;s a regular object instead of a component.</description>
		<content:encoded><![CDATA[<p>James,</p>
<p>Is there anyway to alter the mapping of the component? Where I&#8217;m trying to use my component it&#8217;s not a perfect name to name match.</p>
<p>I tried:<br />
                .ForTypesThatDeriveFrom(autoMap =&gt;<br />
                                                      {<br />
                                                          autoMap.Map(p =&gt; p.Street, &#8220;Address&#8221;);<br />
                                                          autoMap.Map(p =&gt; p.State, &#8220;Region&#8221;);<br />
                                                      })</p>
<p>Where Address is my component but I think that makes AutoMap believe it&#8217;s a regular object instead of a component.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reflective Perspective - Chris Alcock &#187; The Morning Brew #269</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-components/comment-page-1/#comment-15299</link>
		<dc:creator>Reflective Perspective - Chris Alcock &#187; The Morning Brew #269</dc:creator>
		<pubDate>Wed, 21 Jan 2009 08:25:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=222#comment-15299</guid>
		<description>[...] Fluent NHibernate: Auto Mapping Components - James Gregory continues his series on the Fluent NHibernate project with a look at automapping for components from database columns in the same table as the entity data to a related object off the entity. [...]</description>
		<content:encoded><![CDATA[<p>[...] Fluent NHibernate: Auto Mapping Components &#8211; James Gregory continues his series on the Fluent NHibernate project with a look at automapping for components from database columns in the same table as the entity data to a related object off the entity. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Gregory</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-components/comment-page-1/#comment-15291</link>
		<dc:creator>James Gregory</dc:creator>
		<pubDate>Tue, 20 Jan 2009 22:43:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=222#comment-15291</guid>
		<description>@Gabriel: Good question! Currently not possible. I guess I&#039;ll need to amend the convention to pass in the property info too.</description>
		<content:encoded><![CDATA[<p>@Gabriel: Good question! Currently not possible. I guess I&#8217;ll need to amend the convention to pass in the property info too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dew Drop - January 20, 2009 &#124; Alvin Ashcraft's Morning Dew</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-components/comment-page-1/#comment-15277</link>
		<dc:creator>Dew Drop - January 20, 2009 &#124; Alvin Ashcraft's Morning Dew</dc:creator>
		<pubDate>Tue, 20 Jan 2009 14:51:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=222#comment-15277</guid>
		<description>[...] Fluent NHibernate: Auto Mapping Components (James Gregory) [...]</description>
		<content:encoded><![CDATA[<p>[...] Fluent NHibernate: Auto Mapping Components (James Gregory) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Schenker</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-components/comment-page-1/#comment-15268</link>
		<dc:creator>Gabriel Schenker</dc:creator>
		<pubDate>Tue, 20 Jan 2009 07:06:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=222#comment-15268</guid>
		<description>how do you deal with the situation where you have e.g. two addresses for the Person entity: a home address and a work address? How can you prefix the field names with e.g. the property name (that is &quot;HomeAddressStreet&quot; and &quot;WorkAddressStreet&quot;)?</description>
		<content:encoded><![CDATA[<p>how do you deal with the situation where you have e.g. two addresses for the Person entity: a home address and a work address? How can you prefix the field names with e.g. the property name (that is &#8220;HomeAddressStreet&#8221; and &#8220;WorkAddressStreet&#8221;)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Gregory</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-components/comment-page-1/#comment-15256</link>
		<dc:creator>James Gregory</dc:creator>
		<pubDate>Mon, 19 Jan 2009 18:48:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=222#comment-15256</guid>
		<description>@Wookie: In that case, Auto Mapping may not be well suited. However, you could use a combination of Auto Mapping and standard mappings if all your new work is consistent.

Auto Mapping is well suited to greenfield applications, but not impossible to use against brownfield apps, depending on what state they&#039;re in; if there&#039;s some kind of consistency, there&#039;s a chance you can auto map it.

It&#039;s definitely a case of right tool for the right job though, so if your application is in a state that doesn&#039;t lend itself to auto mapping, by all means don&#039;t use it.

If you ever have any questions, drop us a line on the mailing list.

http://groups.google.com/group/fluent-nhibernate</description>
		<content:encoded><![CDATA[<p>@Wookie: In that case, Auto Mapping may not be well suited. However, you could use a combination of Auto Mapping and standard mappings if all your new work is consistent.</p>
<p>Auto Mapping is well suited to greenfield applications, but not impossible to use against brownfield apps, depending on what state they&#8217;re in; if there&#8217;s some kind of consistency, there&#8217;s a chance you can auto map it.</p>
<p>It&#8217;s definitely a case of right tool for the right job though, so if your application is in a state that doesn&#8217;t lend itself to auto mapping, by all means don&#8217;t use it.</p>
<p>If you ever have any questions, drop us a line on the mailing list.</p>
<p><a href="http://groups.google.com/group/fluent-nhibernate" rel="nofollow">http://groups.google.com/group/fluent-nhibernate</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
