Interface EquipmentRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<RoomEquipment, Long>, org.springframework.data.jpa.repository.JpaRepository<RoomEquipment, Long>, org.springframework.data.repository.ListCrudRepository<RoomEquipment, Long>, org.springframework.data.repository.ListPagingAndSortingRepository<RoomEquipment, Long>, org.springframework.data.repository.PagingAndSortingRepository<RoomEquipment, Long>, org.springframework.data.repository.query.QueryByExampleExecutor<RoomEquipment>, org.springframework.data.repository.Repository<RoomEquipment, Long>
@Table(name="equipment")
public interface EquipmentRepository
extends org.springframework.data.jpa.repository.JpaRepository<RoomEquipment, Long>
Fetches/saves
RoomEquipment from/to the database table equipment.-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAllByTypeName(@NonNull String typeName) @NonNull List<RoomEquipment> findAll()AllRoomEquipmentin the database table.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
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
-
findAll
AllRoomEquipmentin the database table.- Specified by:
findAllin interfaceorg.springframework.data.repository.CrudRepository<RoomEquipment, Long>- Specified by:
findAllin interfaceorg.springframework.data.repository.ListCrudRepository<RoomEquipment, Long>- Returns:
- All RoomEquipment.
-
deleteAllByTypeName
- Parameters:
typeName- The title of the equipment type.
-