Open slAvIk159 opened 10 months ago
https://github.com/MaksKrysevych/carshop/blob/0aee53f79ad4754860830370584e238390608f94/src/main/java/carshop/repository/CarRepository.java#L29-L31
ось так не дуже добре, в репозиторіях не має бути обрахунків замість цього: getCarsByPage(int pageNo, int carsPerPage) краще це getCars(int amount, int offset), і ці 2 параметри відразу в кверю можна прописувати
https://github.com/MaksKrysevych/carshop/blob/0aee53f79ad4754860830370584e238390608f94/src/main/java/carshop/repository/CarRepository.java#L29-L31
ось так не дуже добре, в репозиторіях не має бути обрахунків замість цього: getCarsByPage(int pageNo, int carsPerPage) краще це getCars(int amount, int offset), і ці 2 параметри відразу в кверю можна прописувати