title: Hibernate SELECT DISTINCT behavior
body: <p>I hope that this question is not duplicate, because in another case I use google badly (shame on me) :-)</p>
  
  <p>So, I can't find exact and clear answer for my question: Is "SELECT DISTINCT ..." in hql applied before setFirstResult() and setMaxResults()? I want to be calm that I will not have problems with pagination in my app.</p>