Package org.hibernate.internal

Examples of org.hibernate.internal.CriteriaImpl.iterateOrderings()


  public static Criteria applyInlineCount(Criteria crit)
  {
      crit.setMaxResults(0);
      crit.setFirstResult(0);
      CriteriaImpl impl = (CriteriaImpl) crit;
      Iterator<OrderEntry> iter = impl.iterateOrderings();
      while (iter.hasNext()) {
        iter.next();
        iter.remove();
      }
    crit.setProjection( Projections.rowCount());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.