title: Fluent NHibernate - Query using Criteria with filter on connecting table
body: <p>I have following tables</p>
  
  <ul>
  <li><strong>User</strong> - Primary column - Id and other detail columns</li>
  <li><strong>Department</strong> - Primary column - Id and other detail columns</li>
  <li><strong>UserDepartment</strong> - Primary column - Id and other columns are UserId and DepartmentId</li>
  </ul>
  
  <p>I want to find all users those are in department - (1 and 2).
  I also want to find all users those are in department - (1 or 2). </p>
  
  <p>Can anybody suggest me the criteria to get all users in department (1 and 2)? Another criteria to get all users in department - (1 or 2)? </p>
  
  <p>I am new to FluentNHibernate, so didn't tried anything yet as I found nothing relevant on Google search? With the help of Google search, I was able to write criteria for 1-1 relations but not for above scenario.</p>