Ignore:
Timestamp:
02/08/23 12:10:52 (23 months ago)
Author:
milamihajlovska <mila.mihajlovska01@…>
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.
Message:

Merge branch 'master' of https://github.com/DenicaKj/MovieZone

Location:
src/main/java/com/example/moviezone
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/model/procedures/FilmsReturnTable.java

    rc05cd97 r2a98e34  
    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

    rc05cd97 r2a98e34  
    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

    rc05cd97 r2a98e34  
    1717
    1818import javax.servlet.http.HttpSession;
     19import javax.transaction.Transactional;
    1920import java.time.LocalDate;
    2021import java.util.LinkedList;
     
    144145//    }
    145146
     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
    146160//    @GetMapping("/films")
    147161//    public String getFilmsPage1(Model model,@RequestParam(required = false) Integer id_cinema){
Note: See TracChangeset for help on using the changeset viewer.