<?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 SubClass syntax changes</title>
	<atom:link href="http://jagregory.com/writings/fluent-nhibernate-subclass-syntax-changes/feed/" rel="self" type="application/rss+xml" />
	<link>http://jagregory.com/writings/fluent-nhibernate-subclass-syntax-changes/</link>
	<description>Monkeying with the code</description>
	<lastBuildDate>Thu, 04 Aug 2011 15:17:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Rex Morgan</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-subclass-syntax-changes/comment-page-1/#comment-52707</link>
		<dc:creator>Rex Morgan</dc:creator>
		<pubDate>Mon, 19 Jul 2010 21:23:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=171#comment-52707</guid>
		<description>This has been deprecated. Currently, to do this you can create another mapping that inherits from SubclassMap.

Just posting in case someone stumbles on this like I did.

http://wiki.fluentnhibernate.org/Fluent_mapping#Subclasses for more information.</description>
		<content:encoded><![CDATA[<p>This has been deprecated. Currently, to do this you can create another mapping that inherits from SubclassMap.</p>
<p>Just posting in case someone stumbles on this like I did.</p>
<p><a href="http://wiki.fluentnhibernate.org/Fluent_mapping#Subclasses" rel="nofollow">http://wiki.fluentnhibernate.org/Fluent_mapping#Subclasses</a> for more information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2009-07-22 &#171; Praveen&#8217;s Blog</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-subclass-syntax-changes/comment-page-1/#comment-28870</link>
		<dc:creator>links for 2009-07-22 &#171; Praveen&#8217;s Blog</dc:creator>
		<pubDate>Thu, 23 Jul 2009 00:08:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=171#comment-28870</guid>
		<description>[...] James Gregory &#8211; Fluent NHibernate SubClass syntax changes (tags: blog blogs fluent fluentnhibernate nhibernate) [...]</description>
		<content:encoded><![CDATA[<p>[...] James Gregory &#8211; Fluent NHibernate SubClass syntax changes (tags: blog blogs fluent fluentnhibernate nhibernate) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dragos Haiduc</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-subclass-syntax-changes/comment-page-1/#comment-20831</link>
		<dc:creator>Dragos Haiduc</dc:creator>
		<pubDate>Tue, 26 May 2009 10:56:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=171#comment-20831</guid>
		<description>Hi James,

When using this approach, only table A is created for all given types.

How can I have a table per subtype using this synthax?</description>
		<content:encoded><![CDATA[<p>Hi James,</p>
<p>When using this approach, only table A is created for all given types.</p>
<p>How can I have a table per subtype using this synthax?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Gregory</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-subclass-syntax-changes/comment-page-1/#comment-19082</link>
		<dc:creator>James Gregory</dc:creator>
		<pubDate>Mon, 27 Apr 2009 11:34:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=171#comment-19082</guid>
		<description>Please ask on the Fluent NHibernate &lt;a href=&quot;http://groups.google.com/group/fluent-nhibernate&quot; rel=&quot;nofollow&quot;&gt;mailing list&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Please ask on the Fluent NHibernate <a href="http://groups.google.com/group/fluent-nhibernate" rel="nofollow">mailing list</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luiz Sergio</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-subclass-syntax-changes/comment-page-1/#comment-18886</link>
		<dc:creator>Luiz Sergio</dc:creator>
		<pubDate>Thu, 23 Apr 2009 18:10:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=171#comment-18886</guid>
		<description>How can I to create a mapping when a Person can be Employee and/or Customer and/or Supplier, using FNH?</description>
		<content:encoded><![CDATA[<p>How can I to create a mapping when a Person can be Employee and/or Customer and/or Supplier, using FNH?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Gregory</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-subclass-syntax-changes/comment-page-1/#comment-17527</link>
		<dc:creator>James Gregory</dc:creator>
		<pubDate>Mon, 30 Mar 2009 17:00:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=171#comment-17527</guid>
		<description>Sorry but your comment got stuck in limbo for a bit there. I&#039;d suggest you hit the &lt;a href=&quot;http://groups.google.com/group/fluent-nhibernate&quot; rel=&quot;nofollow&quot;&gt;mailing list&lt;/a&gt; for support as you&#039;re much more likely to get a response.

As for your particular question, I&#039;m afraid you&#039;re out of luck right now. We don&#039;t currently support that scenario, but we are very much aware of a need for it.</description>
		<content:encoded><![CDATA[<p>Sorry but your comment got stuck in limbo for a bit there. I&#8217;d suggest you hit the <a href="http://groups.google.com/group/fluent-nhibernate" rel="nofollow">mailing list</a> for support as you&#8217;re much more likely to get a response.</p>
<p>As for your particular question, I&#8217;m afraid you&#8217;re out of luck right now. We don&#8217;t currently support that scenario, but we are very much aware of a need for it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kosalanp</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-subclass-syntax-changes/comment-page-1/#comment-17274</link>
		<dc:creator>kosalanp</dc:creator>
		<pubDate>Wed, 25 Mar 2009 19:13:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=171#comment-17274</guid>
		<description>How do you do the same with .hbm files? meaning, 1 .hbm file per sub class (can ignore the super class) ? Its like, all 3 classes mapped to 1 table, but in 2 hbm files? (hope you know what i meant).</description>
		<content:encoded><![CDATA[<p>How do you do the same with .hbm files? meaning, 1 .hbm file per sub class (can ignore the super class) ? Its like, all 3 classes mapped to 1 table, but in 2 hbm files? (hope you know what i meant).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kiwisurfer</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-subclass-syntax-changes/comment-page-1/#comment-17059</link>
		<dc:creator>kiwisurfer</dc:creator>
		<pubDate>Wed, 18 Mar 2009 16:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=171#comment-17059</guid>
		<description>I&#039;m trying to work out the following scenario with regards to Fluent NHibernate notation for the following:

public class A { }

public class B : A { }

public class C : B { }

public class D : B { }

Where the persisted data for class B, class C and class D are all stored in different tables to A. 

If the discriminator for type C and D is stored in table B and is a simple char field, what notation is required to:

1) Allow for a 1-to-1 relationship between the parent and subtype record in table B and table C
2) Allow for a 1-to-1 relationship between the parent and subtype record in table B  and table D?</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to work out the following scenario with regards to Fluent NHibernate notation for the following:</p>
<p>public class A { }</p>
<p>public class B : A { }</p>
<p>public class C : B { }</p>
<p>public class D : B { }</p>
<p>Where the persisted data for class B, class C and class D are all stored in different tables to A. </p>
<p>If the discriminator for type C and D is stored in table B and is a simple char field, what notation is required to:</p>
<p>1) Allow for a 1-to-1 relationship between the parent and subtype record in table B and table C<br />
2) Allow for a 1-to-1 relationship between the parent and subtype record in table B  and table D?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lieben</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-subclass-syntax-changes/comment-page-1/#comment-16683</link>
		<dc:creator>lieben</dc:creator>
		<pubDate>Fri, 06 Mar 2009 03:27:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=171#comment-16683</guid>
		<description>Interessante Informationen.</description>
		<content:encoded><![CDATA[<p>Interessante Informationen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guido</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-subclass-syntax-changes/comment-page-1/#comment-15935</link>
		<dc:creator>Guido</dc:creator>
		<pubDate>Wed, 11 Feb 2009 08:26:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=171#comment-15935</guid>
		<description>&lt;pre name=&quot;code&quot; class=&quot;c-sharp&quot;&gt;
public MapSample() {
  Id(x =&gt; x.Id);
  //stringa da un type
  DiscriminateSubClassesOnColumn(&quot;Type&quot;)
    .SubClass&lt;B&gt;(m =&gt;{
      m.Map(x =&gt; x.BProperty);
    })
    .SubClass&lt;C&gt;(m =&gt;{
      m.Map(x =&gt; x.CProperty);
    });        
}

public class A :entity.Entity /*Entity holds the Id */
{}  
   
public class B : A  
{  
  public virtual string BProperty { get; set; }  
}  

public class C : A  
{  
  public virtual string CProperty { get; set; }  
}&lt;/pre&gt;

This little Fixture is required -pun intended. Admittedly it&#039;s obvious, yet... Thank you, I like it.</description>
		<content:encoded><![CDATA[<pre name="code" class="c-sharp">
public MapSample() {
  Id(x =&gt; x.Id);
  //stringa da un type
  DiscriminateSubClassesOnColumn("Type")
    .SubClass&lt;B&gt;(m =&gt;{
      m.Map(x =&gt; x.BProperty);
    })
    .SubClass&lt;C&gt;(m =&gt;{
      m.Map(x =&gt; x.CProperty);
    });
}

public class A :entity.Entity /*Entity holds the Id */
{}  

public class B : A
{
  public virtual string BProperty { get; set; }
}  

public class C : A
{
  public virtual string CProperty { get; set; }
}</pre>
<p>This little Fixture is required -pun intended. Admittedly it&#8217;s obvious, yet&#8230; Thank you, I like it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
