Interface EquipmentRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Equipment, Long>, org.springframework.data.jpa.repository.JpaRepository<Equipment, Long>, org.springframework.data.repository.ListCrudRepository<Equipment, Long>, org.springframework.data.repository.ListPagingAndSortingRepository<Equipment, Long>, org.springframework.data.repository.PagingAndSortingRepository<Equipment, Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Equipment>, org.springframework.data.repository.Repository<Equipment, Long>
@Repository
public interface EquipmentRepository
extends org.springframework.data.jpa.repository.JpaRepository<Equipment, Long>
Spring Data JPA repository for
Equipment entities.
Provides standard CRUD operations and derived query methods for
filtering equipment by category, status and name.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfindByCategoryId(Long categoryId) Finds all equipment items belonging to a specific category.Searches for equipment items whose name contains the given text (case-insensitive).findByStatus(EquipmentStatus status) Finds all equipment items with a specific availability status.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
-
findByCategoryId
-
findByStatus
Finds all equipment items with a specific availability status.- Parameters:
status- the equipment status to filter by- Returns:
- list of equipment matching the given status
-
findByNameContainingIgnoreCase
-