- Timestamp:
- 02/08/23 12:07:57 (22 months ago)
- Branches:
- master
- Children:
- 2a98e34
- Parents:
- afa6544
- Location:
- src/main/java/com/example/moviezone
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/model/procedures/FilmsReturnTable.java
rafa6544 reb36f39 9 9 @Data 10 10 public class FilmsReturnTable { 11 Integerid_film;11 int id_film; 12 12 LocalDate start_date; 13 13 String name; … … 19 19 } 20 20 21 public IntegergetId_film() {21 public int getId_film() { 22 22 return id_film; 23 23 } -
src/main/java/com/example/moviezone/repository/FilmRepository.java
rafa6544 reb36f39 6 6 import org.springframework.data.jpa.repository.query.Procedure; 7 7 import org.springframework.data.repository.query.Param; 8 import org.springframework.jdbc.core.JdbcTemplate; 8 9 10 import javax.swing.tree.RowMapper; 9 11 import javax.transaction.Transactional; 12 import java.sql.ResultSet; 13 import java.sql.SQLException; 10 14 import java.util.List; 11 15 @Transactional … … 13 17 @Procedure("project.getFilmsFromCinema") 14 18 List<FilmsReturnTable> getFilmsFromCinema(int id); 19 15 20 } -
src/main/java/com/example/moviezone/web/HomeController.java
rafa6544 reb36f39 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; … … 134 135 } 135 136 @GetMapping("/films") 137 @Transactional 136 138 public String getFilmsPage(Model model){ 137 139 model.addAttribute("cinemas",cinemaService.findAllCinemas());
Note:
See TracChangeset
for help on using the changeset viewer.