Schnittstelle CategoryRepository
- Alle Superschnittstellen:
org.springframework.data.repository.CrudRepository<Category,
,Long> org.springframework.data.jpa.repository.JpaRepository<Category,
,Long> org.springframework.data.repository.ListCrudRepository<Category,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<Category,
,Long> org.springframework.data.repository.PagingAndSortingRepository<Category,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<Category>
,org.springframework.data.repository.Repository<Category,
Long>
public interface CategoryRepository
extends org.springframework.data.jpa.repository.JpaRepository<Category,Long>
Repository interface for accessing and managing category entities in the database.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfindByCategoryType
(CategoryType categoryType) Retrieves a category by categoryType.Von Schnittstelle geerbte Methoden org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
Von Schnittstelle geerbte Methoden org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush
Von Schnittstelle geerbte Methoden org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll
Von Schnittstelle geerbte Methoden org.springframework.data.repository.ListPagingAndSortingRepository
findAll
Von Schnittstelle geerbte Methoden org.springframework.data.repository.PagingAndSortingRepository
findAll
Von Schnittstelle geerbte Methoden org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Methodendetails
-
findByCategoryType
Retrieves a category by categoryType.- Parameter:
categoryType
- the categoryType to search for- Gibt zurück:
- an
Optional
containing the category if found, or empty if not
-