Interface ProductRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Product,,Long> org.springframework.data.jpa.repository.JpaRepository<Product,,Long> org.springframework.data.repository.ListCrudRepository<Product,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<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>
Repository for Products
- Version:
- 1.1
- Author:
- Birk invalid input: '&' Stian
-
Method Summary
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
getByName
Gets a Product by name- Parameters:
name- the name of the group- Returns:
- an optional containing the product if it exists
-