1String hsql = "from Head head1 left join fetch head1.postHeads as head2 where head2.id=9";
2List<Head> list = session.createQuery(hsql).setFirstResult(1).setMaxResults(3).list();
会出现以下提示
警告: firstResult/maxResults specified with collection fetch; applying in memory!