darrachequesne / spring-data-jpa-datatables

Spring Data JPA extension to work with the great jQuery plugin DataTables (https://datatables.net/)
Apache License 2.0
440 stars 174 forks source link

Only get 10 rows of data #126

Closed fauzansaef closed 3 years ago

fauzansaef commented 3 years ago

Hello @darrachequesne , I have a problem when i want to findAll() my entity . Why if i'm using DataTablesRepository only get 10 rows of data from my table on database? But if i'm using JpaRepository it can get all the datas. Please help me.

darrachequesne commented 3 years ago

Hi! You can retrieve all entities with:

DataTablesInput input = new DataTablesInput();
input.setLength(-1);
repository.findAll(input);
fauzansaef commented 3 years ago

i got the problem , thanks bro @darrachequesne