title: nhibernate, Retrieve the latest row in a table
body: <p>A user can have many addresses, but I want to retrieve the latest entry for the user.</p>
  
  <p>In sql I would do:</p>
  
  <pre><code>SELECT TOP 1 *
  FROM UserAddress
  WHERE userID = @userID
  </code></pre>
  
  <p>How can I create a criteria query with the same logic?</p>
  
  <p>Is there a TOP functionality?</p>