Hi,
I've two projects with the same implementation, however,
a project I can use the query successfully, the other throws this exception.
In both projects the table contains 10 records.
I use this for lazy dataTable of primefaces.
Code:
public List<Entity> findAllLimit(String namedQuery, Map parameters,Integer startResults, Integer maxPerPage) throws Exception{
Query query = replaceParameters(namedQuery, parameters);
query.setFirstResult(startResults);
query.setMaxResults(maxPerPage);
List resultList = query.getResultList();
return resultList;
}
Please i need help!!thanks.