Commit 2422f7240bb135c012a291e1ef7c422214a62a62
1 parent
59e72a4b
update...
Showing
1 changed file
with
3 additions
and
0 deletions
src/main/java/com/bsth/repository/StationRouteRepository.java
| ... | ... | @@ -247,6 +247,9 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int |
| 247 | 247 | @Override |
| 248 | 248 | List<StationRoute> findAll(Specification<StationRoute> spec, Sort sort); |
| 249 | 249 | |
| 250 | + @EntityGraph(value = "stationRoute_station", type = EntityGraph.EntityGraphType.FETCH) | |
| 251 | + @Override | |
| 252 | + List<StationRoute> findAll(); | |
| 250 | 253 | |
| 251 | 254 | @Query("select new map(sr.station.id as stationid, sr.stationName as stationname) from StationRoute sr where sr.line.id=?1 and sr.directions=?2") |
| 252 | 255 | List<Map<String, Object>> findStations(Integer xlid, Integer xldir); | ... | ... |