- Timestamp:
- 02/08/23 13:58:18 (22 months ago)
- Branches:
- master
- Children:
- 39a45e6, 90317ea
- Parents:
- 86e187f
- Location:
- src/main/java/com/example/moviezone
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/repository/FilmRepository.java
r86e187f r61fed7c 15 15 @Transactional 16 16 public interface FilmRepository extends JpaRepository<Film,Integer> { 17 @Procedure("project.getFilmsFromCinema ")18 List<Film sReturnTable> getFilmsFromCinema(int id);17 @Procedure("project.getFilmsFromCinema1") 18 List<Film> getFilmsFromCinema(int id); 19 19 20 20 } -
src/main/java/com/example/moviezone/service/FilmService.java
r86e187f r61fed7c 13 13 String age_category, String url, String director, LocalDate start_date,LocalDate end_date); 14 14 Optional<Film> getFilmById(Long id); 15 List<Film sReturnTable> getFilmsFromCinema(int id);15 List<Film> getFilmsFromCinema(int id); 16 16 } -
src/main/java/com/example/moviezone/service/Impl/FilmServiceImpl.java
r86e187f r61fed7c 36 36 37 37 @Override 38 public List<Film sReturnTable> getFilmsFromCinema(int id) {38 public List<Film> getFilmsFromCinema(int id) { 39 39 return filmRepository.getFilmsFromCinema(id); 40 40 } -
src/main/java/com/example/moviezone/web/HomeController.java
r86e187f r61fed7c 134 134 135 135 } 136 // @GetMapping("/films")137 // public String getFilmsPage(Model model){138 // model.addAttribute("cinemas",cinemaService.findAllCinemas());139 // List<FilmsReturnTable> pom=new LinkedList<>();140 // model.addAttribute("films",pom);141 // boolean h=pom.isEmpty();142 // List<FilmsReturnTable> help=filmService.getFilmsFromCinema(2);143 // model.addAttribute("bodyContent","films");144 // return "master-template";145 // }146 147 //@GetMapping("/films")148 @Transactional149 public String getFilmsPage(Model model){150 model.addAttribute("cinemas",cinemaService.findAllCinemas());151 List<FilmsReturnTable> pom=new LinkedList<>();152 model.addAttribute("films",pom);153 boolean h=pom.isEmpty();154 List<FilmsReturnTable> help=filmService.getFilmsFromCinema(2);155 model.addAttribute("bodyContent","films");156 return "master-template";157 }158 136 159 137 … … 172 150 } 173 151 174 // @PostMapping("/getFilmsFromCinema")175 // public String getFilmsFromCinema(@RequestParam Integer cinema, Model model){176 // return getFilmsPage1(model,cinema);177 // }178 152 @GetMapping("/projections") 179 153 public String getProjectionsPage(Model model)
Note:
See TracChangeset
for help on using the changeset viewer.