@Repository @Transactional(readOnly=true) public interface StationRepository extends JpaRepository<Station,Integer>
Modifier and Type | Method and Description |
---|---|
Set<Integer> |
findAllStationIDs() |
List<Station> |
findByStationIDIn(Collection<Integer> collection) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
findAll
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
count, exists, findAll, findOne
List<Station> findByStationIDIn(Collection<Integer> collection)
@Query(value="SELECT station.stationID FROM #{#entityName} station") Set<Integer> findAllStationIDs()
Copyright © 2015–2021. All rights reserved.