Hello! I need to do the pagination with using the dataManager
I have a code like:
List<VacancyFeedback> vacancyFeedbackList = dataManager.load(VacancyFeedback.class)
.query("select vf from VacancyFeedback vf where vf.user = :user order by vf.createTs desc limit :perPage offset :offset")
.parameter("user", user)
.parameter("perPage", perPage)
.parameter("offset", (page - 1) * perPage)
.view("vacancyFeedback-view-browse")
.list();
But I’m getting the JpqlSyntaxException Now I know tha Jpql is not supporting such a syntax.
How could i implement the pagination with DataManager.