title: one-to-one and specifying column
body: <p>I got the following mapping:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" auto-import="false"&gt;
    &lt;class name="Gate.Users.User, Gate.Models" table="users"&gt;
      &lt;id name="Id" column="id"&gt;
        &lt;generator class="sequence"&gt;
          &lt;param name="sequence"&gt;users_id_seq&lt;/param&gt;
        &lt;/generator&gt;
      &lt;/id&gt;
      &lt;one-to-one class="Gate.Extensions.Extension, Gate.Models"  foreign-key="extension_id" name="Extension" /&gt;
    &lt;/class&gt;
  &lt;/hibernate-mapping&gt;
  </code></pre>
  
  <p>Tables (pseudo):</p>
  
  <pre><code>table users
  (
       id primary key
       extension_id int
  )
  
  table extensions
  (
       id primary key
       address varchar(40) 
  )
  </code></pre>
  
  <p>My problem is that nhibernate uses users.id instead of users.extension_id when fetching the extension. Is my mapping incorrect in any way?</p>
  
  <p><strong>Update</strong></p>
  
  <p>I changed to a <code>many-to-one</code> binding, and now it works. Guess I've must misunderstood how <code>one-to-one</code> is used? </p>