Changeset cb5debb for src/main/java/com/example/moviezone
- Timestamp:
- 02/07/23 15:29:55 (22 months ago)
- Branches:
- master
- Children:
- 8d49568, 93341f8
- Parents:
- 9eba1fb (diff), 3650316 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src/main/java/com/example/moviezone
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/repository/FilmRepository.java
r9eba1fb rcb5debb 2 2 3 3 import com.example.moviezone.model.Film; 4 import com.example.moviezone.model.procedures.FilmsReturnTable; 4 5 import org.springframework.data.jpa.repository.JpaRepository; 5 6 import org.springframework.data.jpa.repository.query.Procedure; … … 9 10 10 11 public interface FilmRepository extends JpaRepository<Film,Integer> { 11 12 @Procedure("project.getFilmsFromCinema") 13 List<FilmsReturnTable> getFilmsFromCinema(int id); 12 14 } -
src/main/java/com/example/moviezone/web/HomeController.java
r9eba1fb rcb5debb 33 33 private final ProjectionIsPlayedInRoomRepository projectionIsPlayedInRoomRepository; 34 34 35 35 36 public HomeController(FilmService filmService, UserService userService, ProjectionService projectionService, EventService eventService, TicketService ticketService, WorkerService workerService, CustomerRatesFilmService customerRatesFilmService, CinemaService cinemaService, CinemaOrganizesEventService cinemaOrganizesEventService, CinemaPlaysFilmService cinemaPlaysFilmService, ProjectionIsPlayedInRoomRepository projectionIsPlayedInRoomRepository) { 37 36 38 this.filmService = filmService; 37 39 this.userService = userService; … … 128 130 @GetMapping("/films") 129 131 public String getFilmsPage(Model model){ 132 model.addAttribute("cinemas",cinemaService.findAllCinemas()); 130 133 model.addAttribute("films",filmService.findAllFilms()); 131 134 model.addAttribute("bodyContent","films");
Note:
See TracChangeset
for help on using the changeset viewer.