title: StaleStateException when changing id in nhibernate
body: <p>Very new to NHibernate so I expect there will be a quick fix here.</p>
  
  <p>The code I'm looking at has an unorthodox design.</p>
  
  <pre><code>public class Partner
  {
      public virtual int Id { get; set;} //note the set is not private
      public virtual String Name { get; set;}
  }
  </code></pre>
  
  <p>and is mapped with FluentNhibernate's Automappings</p>
  
  <p>When <code>Partner</code> is created its Id is 0 but when 
  I call Flush to persist to the db:</p>
  
  <pre><code>        CurrentSession.SaveOrUpdate(obj);
          CurrentSession.Flush();
  </code></pre>
  
  <p>I get a  <code>Unexpected row count: 0; expected: 1</code> StaleStateException</p>
  
  <p>I'm assuming its because NHibernate doesn't like me changing the Primary Key, Id.
  In this case I need to. How can I configure NH to let me achieve this abomination?</p>