<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:dtvmedia="http://participatoryculture.org/RSSModules/dtv/1.0"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>J Mathews &#187; Discriminator</title>
	<atom:link href="http://www.justinemathews.com/tag/discriminator/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justinemathews.com</link>
	<description>expertise in .Net technologies</description>
	<lastBuildDate>Tue, 17 Feb 2015 19:31:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1</generator>
	<!-- podcast_generator="podPress/8.5" -->
		<copyright>&#xA9; </copyright>
		<managingEditor>justinemathews@gmail.com ()</managingEditor>
		<webMaster>justinemathews@gmail.com</webMaster>
		<category></category>
		<itunes:keywords></itunes:keywords>
		<itunes:subtitle></itunes:subtitle>
		<itunes:summary>expertise in .Net technologies</itunes:summary>
		<itunes:author></itunes:author>
		<itunes:category text="Society &amp; Culture"/>
		<itunes:owner>
			<itunes:name></itunes:name>
			<itunes:email>justinemathews@gmail.com</itunes:email>
		</itunes:owner>
		<itunes:block>No</itunes:block>
		<itunes:explicit>no</itunes:explicit>
		<itunes:image href="http://www.justinemathews.com/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<image>
			<url>http://www.justinemathews.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
			<title>J Mathews</title>
			<link>http://www.justinemathews.com</link>
			<width>144</width>
			<height>144</height>
		</image>
	<item>
		<title>nhibernate Subclassâ€“bring inheritance into model.</title>
		<link>http://www.justinemathews.com/2011/02/nhibernate-subclassbring-inheritance-into-model/</link>
		<comments>http://www.justinemathews.com/2011/02/nhibernate-subclassbring-inheritance-into-model/#comments</comments>
		<pubDate>Sat, 05 Feb 2011 13:13:12 +0000</pubDate>
		<dc:creator><![CDATA[J Mathews,MCSD.Net]]></dc:creator>
				<category><![CDATA[NHibernate]]></category>
		<category><![CDATA[Discriminator]]></category>
		<category><![CDATA[Inheritance]]></category>
		<category><![CDATA[Nhibernate]]></category>
		<category><![CDATA[Subclass]]></category>

		<guid isPermaLink="false">http://www.justinemathews.com/?p=103</guid>
		<description><![CDATA[<p>Using Nhibernate subclass, we can easily bring the inheritance into model.In the real time business object models are making use of OOPS concepts and Lets see how we can map the object to data structure of SQL. Subclass and discriminator really help us to avoid one to one mapping of object to SQL table.See below...
<p><a class="read-more" href="http://www.justinemathews.com/2011/02/nhibernate-subclassbring-inheritance-into-model/">Read More &#8594;</a></p>
<p>The post <a rel="nofollow" href="http://www.justinemathews.com/2011/02/nhibernate-subclassbring-inheritance-into-model/">nhibernate Subclassâ€“bring inheritance into model.</a> appeared first on <a rel="nofollow" href="http://www.justinemathews.com">J Mathews</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Using Nhibernate subclass, we can easily bring the inheritance into model.In the real time business object models are making use of OOPS concepts and Lets see how we can map the object to data structure of SQL. </p>
<p>Subclass and discriminator really help us to avoid one to one mapping of object to SQL table.See below the object we want to map using Nhibernate,</p>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2011/02/inheritance_class1.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="inheritance_class" border="0" alt="inheritance_class" src="http://www.justinemathews.com/wp-content/uploads/2011/02/inheritance_class_thumb1.png" width="353" height="282" /></a></p>
<p>See also the data structure we need to map,</p>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2011/02/sql_diagram1.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="sql_diagram" border="0" alt="sql_diagram" src="http://www.justinemathews.com/wp-content/uploads/2011/02/sql_diagram_thumb1.png" width="414" height="156" /></a></p>
<p>Write Nhibernate mapping file for making use of the discriminator property,which specifies the type and base type, In our case discriminator column is PersonTypeId. Donâ€™t forget&#160; to use not null property for the discriminator column while mapping.</p>
<p>See the mapping file below,</p>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2011/02/mapping_file.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="mapping_file" border="0" alt="mapping_file" src="http://www.justinemathews.com/wp-content/uploads/2011/02/mapping_file_thumb.png" width="644" height="274" /></a></p>
<p>This makes Employee and Student as type can be selectable with distinguished properties.</p>
<p>The post <a rel="nofollow" href="http://www.justinemathews.com/2011/02/nhibernate-subclassbring-inheritance-into-model/">nhibernate Subclassâ€“bring inheritance into model.</a> appeared first on <a rel="nofollow" href="http://www.justinemathews.com">J Mathews</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinemathews.com/2011/02/nhibernate-subclassbring-inheritance-into-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
