Ignore:
Timestamp:
02/10/23 11:18:48 (21 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
04153a9
Parents:
7926d68
Message:

Interested in event

File:
1 edited

Legend:

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

    r7926d68 ref84238  
    66import org.springframework.data.jpa.repository.query.Procedure;
    77
     8import javax.transaction.Transactional;
    89import java.util.List;
    9 
     10@Transactional
    1011public interface EventRepository extends JpaRepository<Event,Integer> {
    1112    @Procedure("project.getEventsFromCinema")
     
    1314    @Procedure("project.getEventsFromNow")
    1415    List<Event> getFilmsFromCinemaNow();
    15 
     16    @Procedure("project.getEventsForCustomer")
     17    List<Event> getEventsForCustomer(int id);
    1618}
Note: See TracChangeset for help on using the changeset viewer.