@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, saveAndFlushfindAllcount, delete, deleteAll, deleteAll, deleteById, existsById, findById, savecount, exists, findAll, findOneList<Station> findByStationIDIn(Collection<Integer> collection)
@Query(value="SELECT station.stationID FROM #{#entityName} station") Set<Integer> findAllStationIDs()
Copyright © 2015–2021. All rights reserved.