Interface SubsystemRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Subsystem,Subsystem.SubsystemId>, org.springframework.data.jpa.repository.JpaRepository<Subsystem,Subsystem.SubsystemId>, org.springframework.data.repository.PagingAndSortingRepository<Subsystem,Subsystem.SubsystemId>, org.springframework.data.repository.query.QueryByExampleExecutor<Subsystem>, org.springframework.data.repository.Repository<Subsystem,Subsystem.SubsystemId>

@Repository public interface SubsystemRepository extends org.springframework.data.jpa.repository.JpaRepository<Subsystem,Subsystem.SubsystemId>
Repository for queries for sybsystem.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get active subsystems.

    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, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush

    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

    • findAllActive

      @Query("SELECT s.name FROM Subsystem s WHERE s.enabled = true") List<String> findAllActive()
      Get active subsystems.
      Returns:
      subsystem name list from database