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, save
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush
Methods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll
Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
Methods 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
-