Interface ProductRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Product,Long>,org.springframework.data.jpa.repository.JpaRepository<Product,Long>,org.springframework.data.repository.PagingAndSortingRepository<Product,Long>,org.springframework.data.repository.query.QueryByExampleExecutor<Product>,org.springframework.data.repository.Repository<Product,Long>
public interface ProductRepository extends org.springframework.data.jpa.repository.JpaRepository<Product,Long>
The ProductRepository contains methods used to query the database for items in theProducttable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterable<Product>getAllByNameContainsOrderByName(String nameFragment)The Get method to return allProductobjects with a partial match to the keyword by name.Iterable<Product>getAllByProfileAndNameContainsOrderByName(Profile profile, String nameFragment)Iterable<Product>getAllByProfileOrderByName(Profile profile)-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
-
-
-
-
Method Detail
-
getAllByNameContainsOrderByName
Iterable<Product> getAllByNameContainsOrderByName(String nameFragment)
The Get method to return allProductobjects with a partial match to the keyword by name.
-
-