Ignore:
Timestamp:
02/08/23 16:31:52 (23 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
00fa72f
Parents:
2c7a732
Message:

First part of reservation

File:
1 edited

Legend:

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

    r2c7a732 r0ba5d1a  
    66
    77import com.example.moviezone.model.manytomany.ProjectionIsPlayedInRoom;
    8 import com.example.moviezone.repository.ProjectionIsPlayedInRoomRepository;
    98
    109import com.example.moviezone.model.procedures.FilmsReturnTable;
     
    1615import org.springframework.web.bind.annotation.*;
    1716
    18 import javax.naming.event.EventDirContext;
    1917import javax.servlet.http.HttpSession;
    2018import javax.transaction.Transactional;
     
    3937private final CinemaPlaysFilmService cinemaPlaysFilmService;
    4038private 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)
     39private 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)
    4442    {
    4543
     
    5553        this.cinemaPlaysFilmService = cinemaPlaysFilmService;
    5654        this.projectionIsPlayedInRoomService = projectionIsPlayedInRoomService;
     55        this.categoryService = categoryService;
    5756    }
    5857
     
    9493        model.addAttribute("film",film);
    9594        model.addAttribute("projections",projectionService.getProjectionsForFilms(id.intValue()));
     95        model.addAttribute("categories",categoryService.findAllCategories());
    9696        model.addAttribute("bodyContent", "projectionsForFilm");
    9797
Note: See TracChangeset for help on using the changeset viewer.