Changeset ef84238 for src/main/java/com/example/moviezone/repository
- Timestamp:
- 02/10/23 11:18:48 (21 months ago)
- Branches:
- master
- Children:
- 04153a9
- Parents:
- 7926d68
- 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 8 8 @Repository 9 9 public 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 10 14 } -
src/main/java/com/example/moviezone/repository/EventRepository.java
r7926d68 ref84238 6 6 import org.springframework.data.jpa.repository.query.Procedure; 7 7 8 import javax.transaction.Transactional; 8 9 import java.util.List; 9 10 @Transactional 10 11 public interface EventRepository extends JpaRepository<Event,Integer> { 11 12 @Procedure("project.getEventsFromCinema") … … 13 14 @Procedure("project.getEventsFromNow") 14 15 List<Event> getFilmsFromCinemaNow(); 15 16 @Procedure("project.getEventsForCustomer") 17 List<Event> getEventsForCustomer(int id); 16 18 }
Note:
See TracChangeset
for help on using the changeset viewer.