Ignore:
Timestamp:
02/08/23 00:06:18 (22 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
89438a3
Parents:
8d49568
Message:

Fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/web/HomeController.java

    r8d49568 r64ee7f4  
    3636private final CinemaOrganizesEventService cinemaOrganizesEventService;
    3737private final CinemaPlaysFilmService cinemaPlaysFilmService;
    38 private final ProjectionIsPlayedInRoomRepository projectionIsPlayedInRoomRepository;
    39 
    40 
    41     public HomeController(FilmService filmService, UserService userService, ProjectionService projectionService, EventService eventService, TicketService ticketService, WorkerService workerService, CustomerRatesFilmService customerRatesFilmService, CinemaService cinemaService, CinemaOrganizesEventService cinemaOrganizesEventService, CinemaPlaysFilmService cinemaPlaysFilmService, ProjectionIsPlayedInRoomRepository projectionIsPlayedInRoomRepository) {
    42 
     38private final ProjectionIsPlayedInRoomService projectionIsPlayedInRoomService;
     39
     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) {
    4342        this.filmService = filmService;
    4443        this.userService = userService;
     
    5150        this.cinemaOrganizesEventService = cinemaOrganizesEventService;
    5251        this.cinemaPlaysFilmService = cinemaPlaysFilmService;
    53         this.projectionIsPlayedInRoomRepository = projectionIsPlayedInRoomRepository;
     52        this.projectionIsPlayedInRoomService = projectionIsPlayedInRoomService;
    5453    }
    5554
     
    285284
    286285
    287         List<ProjectionIsPlayedInRoom> p= projectionIsPlayedInRoomRepository.findAllById_projection(id_projection);
     286        List<ProjectionIsPlayedInRoom> p= projectionIsPlayedInRoomService.getProjectionPlayedInRoom(id_projection);
    288287
    289288        model.addAttribute("projection",projection);
Note: See TracChangeset for help on using the changeset viewer.