Changeset eb36f39 for src/main/java


Ignore:
Timestamp:
02/08/23 12:07:57 (23 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
2a98e34
Parents:
afa6544
Message:

fixes

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  
    99@Data
    1010public class FilmsReturnTable {
    11     Integer id_film;
     11    int id_film;
    1212    LocalDate start_date;
    1313    String name;
     
    1919    }
    2020
    21     public Integer getId_film() {
     21    public int getId_film() {
    2222        return id_film;
    2323    }
  • src/main/java/com/example/moviezone/repository/FilmRepository.java

    rafa6544 reb36f39  
    66import org.springframework.data.jpa.repository.query.Procedure;
    77import org.springframework.data.repository.query.Param;
     8import org.springframework.jdbc.core.JdbcTemplate;
    89
     10import javax.swing.tree.RowMapper;
    911import javax.transaction.Transactional;
     12import java.sql.ResultSet;
     13import java.sql.SQLException;
    1014import java.util.List;
    1115@Transactional
     
    1317    @Procedure("project.getFilmsFromCinema")
    1418    List<FilmsReturnTable> getFilmsFromCinema(int id);
     19
    1520}
  • src/main/java/com/example/moviezone/web/HomeController.java

    rafa6544 reb36f39  
    1717
    1818import javax.servlet.http.HttpSession;
     19import javax.transaction.Transactional;
    1920import java.time.LocalDate;
    2021import java.util.LinkedList;
     
    134135    }
    135136    @GetMapping("/films")
     137    @Transactional
    136138    public String getFilmsPage(Model model){
    137139        model.addAttribute("cinemas",cinemaService.findAllCinemas());
Note: See TracChangeset for help on using the changeset viewer.