Ignore:
Timestamp:
02/08/23 14:41:27 (22 months ago)
Author:
milamihajlovska <mila.mihajlovska01@…>
Branches:
master
Children:
2c7a732
Parents:
39a45e6 (diff), 90317ea (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

File:
1 edited

Legend:

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

    r39a45e6 r632e3d8  
    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}
Note: See TracChangeset for help on using the changeset viewer.