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

Interested in event

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

Legend:

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

    r7926d68 ref84238  
    88@Repository
    99public interface CustomerIsInterestedInEventRepository extends JpaRepository<CustomerIsInterestedInEvent, CustomerIsInterestedInEventId> {
     10    CustomerIsInterestedInEvent save(CustomerIsInterestedInEvent customerIsInterestedInEvent);
     11    void delete(CustomerIsInterestedInEvent customerIsInterestedInEvent);
     12    CustomerIsInterestedInEvent findFirstByIdeventAndAndIdcustomer(int id_event,int id_customer);
     13
    1014}
  • 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.