Ignore:
Timestamp:
02/09/23 14:06:45 (21 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
6a9006d, a9ffccd
Parents:
0ba5d1a
Message:

Reservation Implemented

File:
1 edited

Legend:

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

    r0ba5d1a r00fa72f  
    44import com.example.moviezone.model.Ticket;
    55import org.springframework.data.jpa.repository.JpaRepository;
     6import org.springframework.data.jpa.repository.query.Procedure;
    67import org.springframework.stereotype.Repository;
    78
     
    1011public interface TicketRepository extends JpaRepository<Ticket,Integer> {
    1112    List<Ticket> findAllByCustomer(Customer customer);
     13    @Procedure("project.getPriceForTicket")
     14    Integer getPriceForTicket(int id);
    1215}
Note: See TracChangeset for help on using the changeset viewer.