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

Added use of criteriaQuery in pagination