added use of criteriaQuery in pagination #21
removed the use of queryTmpl #21
Merge pull request #54 from terasolunaorg/issues/21

removed the use of queryTmpl Issues/21