﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ayende Rahien commented on NHibernate Mapping - &lt;list/&gt;</title><description>Yes, it is.
</description><link>http://ayende.com/4043/nhibernate-mapping-list#comment13</link><guid>http://ayende.com/4043/nhibernate-mapping-list#comment13</guid><pubDate>Thu, 04 Jun 2009 11:21:54 GMT</pubDate></item><item><title>Umair commented on NHibernate Mapping - &lt;list/&gt;</title><description>In your post you mentioned, 
  
"if I wanted to use the 
&lt;one-to-many mapping, the PhoneId would be located on the Phones table."
  
  
I feel there is a mistake and it should be "UserId would be located on the Phones table"
&gt;</description><link>http://ayende.com/4043/nhibernate-mapping-list#comment12</link><guid>http://ayende.com/4043/nhibernate-mapping-list#comment12</guid><pubDate>Wed, 03 Jun 2009 23:18:01 GMT</pubDate></item><item><title>Frans Bouma commented on NHibernate Mapping - &lt;list/&gt;</title><description>@Ayende: agreed, I overlooked the where clauses in the UPDATE statements. 
</description><link>http://ayende.com/4043/nhibernate-mapping-list#comment11</link><guid>http://ayende.com/4043/nhibernate-mapping-list#comment11</guid><pubDate>Wed, 03 Jun 2009 09:51:04 GMT</pubDate></item><item><title>DaRage commented on NHibernate Mapping - &lt;list/&gt;</title><description>Hi Guys,
  
  
Again regarding the left join. I still don't understand. I was assuming if the foreign key is nullable (ie the phoneId in UserToEmergencyPhones table) than the query will be left join. but if the phoneId column is not nullable it will an inner joint. Or does NHibernate assumes that there will be orphane phoneIds and do a left join all the time. doesn't orphane phone ids mean data corruption and should be protected against by using foreign keys?
</description><link>http://ayende.com/4043/nhibernate-mapping-list#comment10</link><guid>http://ayende.com/4043/nhibernate-mapping-list#comment10</guid><pubDate>Tue, 02 Jun 2009 14:39:43 GMT</pubDate></item><item><title>Ayende Rahien commented on NHibernate Mapping - &lt;list/&gt;</title><description>Frans,
  
Nope, it doesn't. If two threads are messing with it, one of them is going to get a concurrency violation error, as expected.
  
  
</description><link>http://ayende.com/4043/nhibernate-mapping-list#comment9</link><guid>http://ayende.com/4043/nhibernate-mapping-list#comment9</guid><pubDate>Tue, 02 Jun 2009 11:35:49 GMT</pubDate></item><item><title>Tigraine commented on NHibernate Mapping - &lt;list/&gt;</title><description>Thanks for the reply Ayende.
  
I'll look into the ordered set.. 
</description><link>http://ayende.com/4043/nhibernate-mapping-list#comment8</link><guid>http://ayende.com/4043/nhibernate-mapping-list#comment8</guid><pubDate>Tue, 02 Jun 2009 11:32:50 GMT</pubDate></item><item><title>Frans Bouma commented on NHibernate Mapping - &lt;list/&gt;</title><description>This only works if there's just 1 thread of the app modifying the position parameter. I.o.w.: a table lock is required. I don't see that as a valuable feature, if people have to maintain the index anyway, they can also add a position property to the entity and be done with it. 
</description><link>http://ayende.com/4043/nhibernate-mapping-list#comment7</link><guid>http://ayende.com/4043/nhibernate-mapping-list#comment7</guid><pubDate>Tue, 02 Jun 2009 11:25:17 GMT</pubDate></item><item><title>Ayende Rahien commented on NHibernate Mapping - &lt;list/&gt;</title><description>Tigraine,
  
Because in general, having NH doing something like that for you can be bad. There is a _meaning_ to null values.
  
But broadly, it is because it is not the responsibility of NHibernate to do so. If you want something like that, you don't need a list, you need an ordered set.
  
  
As for the second thing, ordering is for a single collection. You can have polymorphic association using list, however.
</description><link>http://ayende.com/4043/nhibernate-mapping-list#comment6</link><guid>http://ayende.com/4043/nhibernate-mapping-list#comment6</guid><pubDate>Tue, 02 Jun 2009 10:28:07 GMT</pubDate></item><item><title>Tigraine commented on NHibernate Mapping - &lt;list/&gt;</title><description>Thanks for the article. Very interesting.
  
  
I just wonder why there is no "figure it out" property in the mappings. Something that instructs NH to also fix the missing indexes (resulting in more work for the DB but saving the developer some trouble).
  
  
Also is there a way to persist two collections with the same ordering?
  
Like OrderLineItems and OrderLineText, both maybe deriving from the same base but being different... 
  
(I had two lists on the Order, which I could mix to their common base but kept seperated for some calculations)
  
  
greetings Daniel
</description><link>http://ayende.com/4043/nhibernate-mapping-list#comment5</link><guid>http://ayende.com/4043/nhibernate-mapping-list#comment5</guid><pubDate>Tue, 02 Jun 2009 10:21:46 GMT</pubDate></item><item><title>Ayende Rahien commented on NHibernate Mapping - &lt;list/&gt;</title><description>Try build 294, it is there, when you select multiple statements.
</description><link>http://ayende.com/4043/nhibernate-mapping-list#comment4</link><guid>http://ayende.com/4043/nhibernate-mapping-list#comment4</guid><pubDate>Tue, 02 Jun 2009 09:51:20 GMT</pubDate></item><item><title>Krzysztof Kozmic commented on NHibernate Mapping - &lt;list/&gt;</title><description>when did you add the --statement #x
  
My build does not have it yet ;)
</description><link>http://ayende.com/4043/nhibernate-mapping-list#comment3</link><guid>http://ayende.com/4043/nhibernate-mapping-list#comment3</guid><pubDate>Tue, 02 Jun 2009 08:13:21 GMT</pubDate></item><item><title>Eric Hauser commented on NHibernate Mapping - &lt;list/&gt;</title><description>Hibernate returns null for a missing entry as well.
</description><link>http://ayende.com/4043/nhibernate-mapping-list#comment2</link><guid>http://ayende.com/4043/nhibernate-mapping-list#comment2</guid><pubDate>Tue, 02 Jun 2009 03:05:42 GMT</pubDate></item><item><title>DaRage commented on NHibernate Mapping - &lt;list/&gt;</title><description>I didn't understand why in the second query, UserToEmergencyPhones is left joined to the Phones table. Shouldn't it be an inner join? 
</description><link>http://ayende.com/4043/nhibernate-mapping-list#comment1</link><guid>http://ayende.com/4043/nhibernate-mapping-list#comment1</guid><pubDate>Tue, 02 Jun 2009 01:37:07 GMT</pubDate></item></channel></rss>