<?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: NHibernate Mapping Examples</title> <atom:link href="http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/feed/" rel="self" type="application/rss+xml" /><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/</link> <description>inquisitive: adjective. given to inquiry, research, or asking questions; eager for knowledge; intellectually curious</description> <lastBuildDate>Wed, 08 Feb 2012 11:42:42 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: SEO</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-101693</link> <dc:creator>SEO</dc:creator> <pubDate>Mon, 17 Oct 2011 19:17:47 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-101693</guid> <description>&lt;strong&gt;[...]check below, are some totally unrelated websites to ours, however, they are most trustworthy sources that we use[...]…...&lt;/strong&gt;[...]one of our visitors recently recommended the following website[...]…...</description> <content:encoded><![CDATA[<p><strong>[...]check below, are some totally unrelated websites to ours, however, they are most trustworthy sources that we use[...]…&#8230;</strong></p><p>[...]one of our visitors recently recommended the following website[...]…&#8230;</p> ]]></content:encoded> </item> <item><title>By: Ellrhow</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-100880</link> <dc:creator>Ellrhow</dc:creator> <pubDate>Sun, 21 Aug 2011 20:26:00 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-100880</guid> <description>Did you change the Northwind database? I thought it was OrderDetails, not OrderLines....if so then this is not very helpfull or correct.</description> <content:encoded><![CDATA[<p>Did you change the Northwind database? I thought it was OrderDetails, not OrderLines&#8230;.if so then this is not very helpfull or correct.</p> ]]></content:encoded> </item> <item><title>By: NHibernate Examples</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-98950</link> <dc:creator>NHibernate Examples</dc:creator> <pubDate>Sun, 10 Apr 2011 15:36:59 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-98950</guid> <description>[...] published some NHibernate examples almost 4 years ago, and they still get downloaded pretty frequently. Unfortunately they still use NHibernate 1.2 and [...]</description> <content:encoded><![CDATA[<p>[...] published some NHibernate examples almost 4 years ago, and they still get downloaded pretty frequently. Unfortunately they still use NHibernate 1.2 and [...]</p> ]]></content:encoded> </item> <item><title>By: NHibernate 3.x i FluentNHibernate: Płynne mapowanie &#8211; Północny wiatr (Northwind) &#171; Kamil Kliczbor @ asptip.net</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-86730</link> <dc:creator>NHibernate 3.x i FluentNHibernate: Płynne mapowanie &#8211; Północny wiatr (Northwind) &#171; Kamil Kliczbor @ asptip.net</dc:creator> <pubDate>Mon, 27 Dec 2010 20:17:12 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-86730</guid> <description>[...] Celem niniejszego wpisu jest wykonanie mapowania bazy danych Northwind przy użyciu ORM-a jakim jest NHibernate w wersji 3.x. Dodatkowo, zamiast pisać xml-e konfiguracyjne posłużymy się FluentNHibernate. Model domenowy będzie stanowić całkiem niezłe podwaliny pod serię artykułów na temat pisania dedykowanych zapytań, które chcę popełnić w niedalekiej przyszłości. Za zgodą Davy Briona zmieniłem mapowania lekko zmodyfikowanej, myślę że również oklepanej bazy danych Northwind. Oryginalny projekt wraz z objaśnieniami można znaleźć pod adresem http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/. [...]</description> <content:encoded><![CDATA[<p>[...] Celem niniejszego wpisu jest wykonanie mapowania bazy danych Northwind przy użyciu ORM-a jakim jest NHibernate w wersji 3.x. Dodatkowo, zamiast pisać xml-e konfiguracyjne posłużymy się FluentNHibernate. Model domenowy będzie stanowić całkiem niezłe podwaliny pod serię artykułów na temat pisania dedykowanych zapytań, które chcę popełnić w niedalekiej przyszłości. Za zgodą Davy Briona zmieniłem mapowania lekko zmodyfikowanej, myślę że również oklepanej bazy danych Northwind. Oryginalny projekt wraz z objaśnieniami można znaleźć pod adresem <a
href="http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/" rel="nofollow">http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/</a>. [...]</p> ]]></content:encoded> </item> <item><title>By: Prashanth</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-58929</link> <dc:creator>Prashanth</dc:creator> <pubDate>Mon, 13 Sep 2010 01:00:12 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-58929</guid> <description>i am working on the simple mapping between product and category,,can i get this same version in fluentnhibernate ? thanks</description> <content:encoded><![CDATA[<p>i am working on the simple mapping between product and category,,can i get this same version in fluentnhibernate ? thanks</p> ]]></content:encoded> </item> <item><title>By: Prashanth</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-58928</link> <dc:creator>Prashanth</dc:creator> <pubDate>Mon, 13 Sep 2010 00:58:48 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-58928</guid> <description>this is really usefull,i think soo many people like me are looking for resources like this...great work and thanks..</description> <content:encoded><![CDATA[<p>this is really usefull,i think soo many people like me are looking for resources like this&#8230;great work and thanks..</p> ]]></content:encoded> </item> <item><title>By: Diijon</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-51525</link> <dc:creator>Diijon</dc:creator> <pubDate>Thu, 05 Aug 2010 15:58:54 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-51525</guid> <description>I&#039;d like to see you implement this model using strictly stored procedures.</description> <content:encoded><![CDATA[<p>I&#8217;d like to see you implement this model using strictly stored procedures.</p> ]]></content:encoded> </item> <item><title>By: Socrates Ponnusamy</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-42197</link> <dc:creator>Socrates Ponnusamy</dc:creator> <pubDate>Wed, 16 Jun 2010 15:22:02 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-42197</guid> <description>this is a nice one. Thanks. Can you please tell  me how would you do it if we have two more columns added to EmployeTerritories (Status and UpdatedDateTime)? I could not find any help on this. Thanks in advance</description> <content:encoded><![CDATA[<p>this is a nice one. Thanks. Can you please tell  me how would you do it if we have two more columns added to EmployeTerritories (Status and UpdatedDateTime)? I could not find any help on this. Thanks in advance</p> ]]></content:encoded> </item> <item><title>By: Sougandh</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-36361</link> <dc:creator>Sougandh</dc:creator> <pubDate>Fri, 16 Apr 2010 12:46:45 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-36361</guid> <description>Thats a nice one.  Thanks for posting them.Regards,
Sougandh Pavithran</description> <content:encoded><![CDATA[<p>Thats a nice one.  Thanks for posting them.</p><p>Regards,<br
/> Sougandh Pavithran</p> ]]></content:encoded> </item> <item><title>By: Salman</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-23249</link> <dc:creator>Salman</dc:creator> <pubDate>Wed, 16 Dec 2009 19:18:06 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-23249</guid> <description>ah ok, you only have the Territory entity that is able to add/remove employees, so its not bidirectional in that manner :)</description> <content:encoded><![CDATA[<p>ah ok, you only have the Territory entity that is able to add/remove employees, so its not bidirectional in that manner <img
src='http://d18sni7re4ly7f.cloudfront.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Salman</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-23248</link> <dc:creator>Salman</dc:creator> <pubDate>Wed, 16 Dec 2009 19:16:52 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-23248</guid> <description>Davy,In your example, you have a many-to-many relationship for territories and employees.
You used a Set in the Territory mapping file, and a bag in the employee mapping file.Don&#039;t you need to set one of them with the inverse=true attribute?  To tell nhibernate which entity collection to use when their is a change?</description> <content:encoded><![CDATA[<p>Davy,</p><p>In your example, you have a many-to-many relationship for territories and employees.<br
/> You used a Set in the Territory mapping file, and a bag in the employee mapping file.</p><p>Don&#8217;t you need to set one of them with the inverse=true attribute?  To tell nhibernate which entity collection to use when their is a change?</p> ]]></content:encoded> </item> <item><title>By: Davy Brion</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-23074</link> <dc:creator>Davy Brion</dc:creator> <pubDate>Wed, 02 Dec 2009 07:30:39 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-23074</guid> <description>@Salmannope, i don&#039;t really believe in them :)</description> <content:encoded><![CDATA[<p>@Salman</p><p>nope, i don&#8217;t really believe in them <img
src='http://d18sni7re4ly7f.cloudfront.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Salman</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-23073</link> <dc:creator>Salman</dc:creator> <pubDate>Tue, 01 Dec 2009 18:37:00 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-23073</guid> <description>Great example!Curious, did you use any tools for generating your mappings?</description> <content:encoded><![CDATA[<p>Great example!</p><p>Curious, did you use any tools for generating your mappings?</p> ]]></content:encoded> </item> <item><title>By: Ibrahim</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-22711</link> <dc:creator>Ibrahim</dc:creator> <pubDate>Wed, 14 Oct 2009 17:56:19 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-22711</guid> <description>Hi..I am new to NHIbernate.
Can anybody tellme how to do mapping / solve the current situation..Product Table                  Category Tableproductid                      categoryId
productname                    category
productdescription
category{string type}Current Window: Product.Xaml [iam binding product entity to this form/window]and my requirement is while accessing product entity from product table i need to access all categories from category table.So that it will be binded to a dropdownlist. is it possible? or i need to bind categories programmatically after loaded product entity ?</description> <content:encoded><![CDATA[<p>Hi..</p><p>I am new to NHIbernate.<br
/> Can anybody tellme how to do mapping / solve the current situation..</p><p>Product Table                  Category Table</p><p>productid                      categoryId<br
/> productname                    category<br
/> productdescription<br
/> category{string type}</p><p>Current Window: Product.Xaml [iam binding product entity to this form/window]</p><p>and my requirement is while accessing product entity from product table i need to access all categories from category table.So that it will be binded to a dropdownlist. is it possible? or i need to bind categories programmatically after loaded product entity ?</p> ]]></content:encoded> </item> <item><title>By: RichB</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-10898</link> <dc:creator>RichB</dc:creator> <pubDate>Tue, 31 Mar 2009 15:41:20 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-10898</guid> <description>Beautiful.
My only complaint is that it could have done with some complex HQL examples.&quot;from Employees e where e.Orders.OrderLines.Discount &gt; 5&quot;...and I know that won&#039;t compile, because that demonstrates what I&#039;m stuck trying to do. I was hoping your fantastic Northwind solution which give me the answer.</description> <content:encoded><![CDATA[<p>Beautiful.<br
/> My only complaint is that it could have done with some complex HQL examples.</p><p>&#8220;from Employees e where e.Orders.OrderLines.Discount &gt; 5&#8243;</p><p>&#8230;and I know that won&#8217;t compile, because that demonstrates what I&#8217;m stuck trying to do. I was hoping your fantastic Northwind solution which give me the answer.</p> ]]></content:encoded> </item> <item><title>By: The Inquisitive Coder - Davy Brion&#8217;s Blog &#187; Blog Archive &#187; What Would You Like To See In My Upcoming NHibernate Examples?</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-10272</link> <dc:creator>The Inquisitive Coder - Davy Brion&#8217;s Blog &#187; Blog Archive &#187; What Would You Like To See In My Upcoming NHibernate Examples?</dc:creator> <pubDate>Sun, 22 Mar 2009 15:35:58 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-10272</guid> <description>[...] original version of my NHibernate Mapping Examples was pretty popular, but they were based on NHibernate 1.2 and only showed some of the basics. I [...]</description> <content:encoded><![CDATA[<p>[...] original version of my NHibernate Mapping Examples was pretty popular, but they were based on NHibernate 1.2 and only showed some of the basics. I [...]</p> ]]></content:encoded> </item> <item><title>By: Albert Araalie</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-7522</link> <dc:creator>Albert Araalie</dc:creator> <pubDate>Sat, 10 Jan 2009 10:01:51 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-7522</guid> <description>I&#039;ve used the samples successfully! Thanks alot! How would I map a view that queries the Employees&#039; table, through to the Products&#039; table? An initial complaint from nhibernate is that it cannot find an id field.</description> <content:encoded><![CDATA[<p>I&#8217;ve used the samples successfully! Thanks alot! How would I map a view that queries the Employees&#8217; table, through to the Products&#8217; table? An initial complaint from nhibernate is that it cannot find an id field.</p> ]]></content:encoded> </item> <item><title>By: Jamie</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-4315</link> <dc:creator>Jamie</dc:creator> <pubDate>Mon, 27 Oct 2008 17:25:28 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-4315</guid> <description>Well.. that didn&#039;t work... (no xml posting... duhh). (why is there no preview?)
Without the xml, it&#039;s:class name=&quot;Table1Class&quot; table=&quot;Table1&quot;
set name=&quot;Table3s&quot; cascade=&quot;save-update&quot; table=&quot;Table3&quot;
key column=&quot;Table1ID&quot;
composite-element class=&quot;Table3Class&quot;
property name=&quot;SortOrder&quot;
many-to-one name=&quot;Table2Class&quot; column=&quot;Table2ID&quot;
/composite-element
/set
/class</description> <content:encoded><![CDATA[<p>Well.. that didn&#8217;t work&#8230; (no xml posting&#8230; duhh). (why is there no preview?)<br
/> Without the xml, it&#8217;s:</p><p>class name=&#8221;Table1Class&#8221; table=&#8221;Table1&#8243;<br
/> set name=&#8221;Table3s&#8221; cascade=&#8221;save-update&#8221; table=&#8221;Table3&#8243;<br
/> key column=&#8221;Table1ID&#8221;<br
/> composite-element class=&#8221;Table3Class&#8221;<br
/> property name=&#8221;SortOrder&#8221;<br
/> many-to-one name=&#8221;Table2Class&#8221; column=&#8221;Table2ID&#8221;<br
/> /composite-element<br
/> /set<br
/> /class</p> ]]></content:encoded> </item> <item><title>By: Jamie</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-4314</link> <dc:creator>Jamie</dc:creator> <pubDate>Mon, 27 Oct 2008 17:22:39 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-4314</guid> <description>JBurrow, probably too late of an answer, but I had to tackle the same thing (a many-to-many with an additional value).  You just need to define the association table in one of the containing classes.  For your example: </description> <content:encoded><![CDATA[<p>JBurrow, probably too late of an answer, but I had to tackle the same thing (a many-to-many with an additional value).  You just need to define the association table in one of the containing classes.  For your example:</p> ]]></content:encoded> </item> <item><title>By: Davy Brion</title><link>http://davybrion.com/blog/2007/07/nhibernate-mapping-examples/comment-page-1/#comment-1813</link> <dc:creator>Davy Brion</dc:creator> <pubDate>Sat, 06 Sep 2008 09:24:32 +0000</pubDate> <guid
isPermaLink="false">http://ralinx.wordpress.com/2007/07/15/nhibernate-mapping-examples/#comment-1813</guid> <description>I don&#039;t think you can do that... A true many-to-many only has two keys... once another column is added, it&#039;s considered an own entity in its own right. In this case it might seem a bit drastic because of the column only contains a SortOrder, but i&#039;m affraid you won&#039;t be able to use a many-to-many association for thatI can be wrong though :)</description> <content:encoded><![CDATA[<p>I don&#8217;t think you can do that&#8230; A true many-to-many only has two keys&#8230; once another column is added, it&#8217;s considered an own entity in its own right. In this case it might seem a bit drastic because of the column only contains a SortOrder, but i&#8217;m affraid you won&#8217;t be able to use a many-to-many association for that</p><p>I can be wrong though <img
src='http://d18sni7re4ly7f.cloudfront.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/24 queries in 0.019 seconds using disk: basic
Object Caching 649/650 objects using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: d18sni7re4ly7f.cloudfront.net

Served from: davybrion.com @ 2012-02-08 17:52:52 -->
