Package com.example.springrest.repositories
package com.example.springrest.repositories
This package contains the repository interfaces for the application.
Repositories are responsible for abstracting persistence and providing
a simple interface for data access. They extend Spring Data JPA's
JpaRepository
to gain
built-in CRUD operations and support for pagination and sorting.
Current Repositories
ProductRepo
— Provides CRUD operations and custom queries forProduct
entities, including case-insensitive name search with pagination.
Design Notes
- Repositories should remain thin - business logic belongs in the service layer.
- Custom queries can be defined using Spring Data's derived query methods or JPQL.
- See Also:
-
Interfaces