Is there any way to limit the no. of rows returned,
December 30, 2009 at 4:48 PM
Hello All,
Is there any way to limit the number of rows returned from a query when using findByNamedQueryAndNamedParam().
findByNamedQueryAndNamedParam(String queryName, String[] paramNames, Object[] values) - Execute a named query for persistent instances, binding a number of values to ":" named parameters in the query string.
I have seen setMaxResults() for org.hibernate.Query class to set limit on number of rows returned. Any help on this is appreciated.