Ignore:
Timestamp:
02/08/23 14:40:10 (22 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
5867520, 632e3d8
Parents:
61fed7c
Message:

Events and Event

Location:
src/main/java/com/example/moviezone/repository
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/repository/EventRepository.java

    r61fed7c r90317ea  
    22
    33import com.example.moviezone.model.Event;
     4import com.example.moviezone.model.Film;
    45import org.springframework.data.jpa.repository.JpaRepository;
     6import org.springframework.data.jpa.repository.query.Procedure;
     7
     8import java.util.List;
    59
    610public interface EventRepository extends JpaRepository<Event,Integer> {
     11    @Procedure("project.getEventsFromCinema")
     12    List<Event> getFilmsFromCinema(int id);
     13    @Procedure("project.getEventsFromNow")
     14    List<Event> getFilmsFromCinemaNow();
     15
    716}
  • src/main/java/com/example/moviezone/repository/FilmRepository.java

    r61fed7c r90317ea  
    1717    @Procedure("project.getFilmsFromCinema1")
    1818    List<Film> getFilmsFromCinema(int id);
    19 
     19    @Procedure("project.getFilmsFromCinemaNow")
     20    List<Film> getFilmsFromCinemaNow(int id);
     21    @Procedure("project.getFilmsNow")
     22    List<Film> getFilmsNow();
    2023}
Note: See TracChangeset for help on using the changeset viewer.