Changeset 2a98e34 for src/main/java/com/example/moviezone/web
- Timestamp:
- 02/08/23 12:10:52 (23 months ago)
- Branches:
- master
- Children:
- 86e187f
- Parents:
- c05cd97 (diff), eb36f39 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/web/HomeController.java
rc05cd97 r2a98e34 17 17 18 18 import javax.servlet.http.HttpSession; 19 import javax.transaction.Transactional; 19 20 import java.time.LocalDate; 20 21 import java.util.LinkedList; … … 144 145 // } 145 146 147 @GetMapping("/films") 148 @Transactional 149 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 159 146 160 // @GetMapping("/films") 147 161 // public String getFilmsPage1(Model model,@RequestParam(required = false) Integer id_cinema){
Note:
See TracChangeset
for help on using the changeset viewer.