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 Type
    Method
    Description
    findByCategoryId(Long categoryId)
    Finds all equipment items belonging to a specific category.
    Searches for equipment items whose name contains the given text (case-insensitive).
    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, 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

    • findByCategoryId

      List<Equipment> findByCategoryId(Long categoryId)
      Finds all equipment items belonging to a specific category.
      Parameters:
      categoryId - the ID of the category
      Returns:
      list of equipment in the given category
    • findByStatus

      List<Equipment> findByStatus(EquipmentStatus status)
      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

      List<Equipment> findByNameContainingIgnoreCase(String name)
      Searches for equipment items whose name contains the given text (case-insensitive).
      Parameters:
      name - the search text to match against equipment names
      Returns:
      list of equipment whose name contains the search text