title: NHibernate Mapping with No Id
body: <p>Is it possible to do a mapping in NHibernate without using an Id?</p>
  
  <p>What I'm trying to do is, call a stored procedure using </p>
  
  <pre><code>session.CreateSqlQuery( myQuery ).AddEntity( typeof( MyEntity ) );
  </code></pre>
  
  <p>The procedure is an aggregate and there is no Id field being returned, but I would still like to take advantage of NHibernate mapping the data returned into an entity. The only thing I have come up with so far is having the procedure add a field "O as Id" or something, and have the entity have a fake Id field.</p>