Changeset 0ba5d1a for src/main/java/com/example/moviezone/web
- Timestamp:
- 02/08/23 16:31:52 (22 months ago)
- Branches:
- master
- Children:
- 00fa72f
- Parents:
- 2c7a732
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/web/HomeController.java
r2c7a732 r0ba5d1a 6 6 7 7 import com.example.moviezone.model.manytomany.ProjectionIsPlayedInRoom; 8 import com.example.moviezone.repository.ProjectionIsPlayedInRoomRepository;9 8 10 9 import com.example.moviezone.model.procedures.FilmsReturnTable; … … 16 15 import org.springframework.web.bind.annotation.*; 17 16 18 import javax.naming.event.EventDirContext;19 17 import javax.servlet.http.HttpSession; 20 18 import javax.transaction.Transactional; … … 39 37 private final CinemaPlaysFilmService cinemaPlaysFilmService; 40 38 private final ProjectionIsPlayedInRoomService projectionIsPlayedInRoomService; 41 42 43 public HomeController(FilmService filmService, UserService userService, ProjectionService projectionService, EventService eventService, TicketService ticketService, WorkerService workerService, CustomerRatesFilmService customerRatesFilmService, CinemaService cinemaService, CinemaOrganizesEventService cinemaOrganizesEventService, CinemaPlaysFilmService cinemaPlaysFilmService, ProjectionIsPlayedInRoomService projectionIsPlayedInRoomService )39 private final CategoryService categoryService; 40 41 public HomeController(FilmService filmService, UserService userService, ProjectionService projectionService, EventService eventService, TicketService ticketService, WorkerService workerService, CustomerRatesFilmService customerRatesFilmService, CinemaService cinemaService, CinemaOrganizesEventService cinemaOrganizesEventService, CinemaPlaysFilmService cinemaPlaysFilmService, ProjectionIsPlayedInRoomService projectionIsPlayedInRoomService, CategoryService categoryService) 44 42 { 45 43 … … 55 53 this.cinemaPlaysFilmService = cinemaPlaysFilmService; 56 54 this.projectionIsPlayedInRoomService = projectionIsPlayedInRoomService; 55 this.categoryService = categoryService; 57 56 } 58 57 … … 94 93 model.addAttribute("film",film); 95 94 model.addAttribute("projections",projectionService.getProjectionsForFilms(id.intValue())); 95 model.addAttribute("categories",categoryService.findAllCategories()); 96 96 model.addAttribute("bodyContent", "projectionsForFilm"); 97 97
Note:
See TracChangeset
for help on using the changeset viewer.