- Timestamp:
- 02/02/23 22:46:30 (22 months ago)
- Branches:
- master
- Children:
- ac25203
- Parents:
- f60cb20
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/service/Impl/TicketServiceImpl.java
rf60cb20 r1b248e4 1 1 package com.example.moviezone.service.Impl; 2 2 3 import com.example.moviezone.model.Customer; 3 4 import com.example.moviezone.model.Ticket; 5 import com.example.moviezone.repository.TicketRepository; 4 6 import com.example.moviezone.service.TicketService; 5 7 import org.springframework.stereotype.Service; … … 9 11 @Service 10 12 public class TicketServiceImpl implements TicketService { 11 @Override 12 public List<Ticket> findAllTickets() { 13 return null; 13 private final TicketRepository ticketRepository; 14 15 public TicketServiceImpl(TicketRepository ticketRepository) { 16 this.ticketRepository = ticketRepository; 14 17 } 15 18 16 19 @Override 17 public List<Ticket> findAllByCustomer() { 18 return null; 20 public List<Ticket> findAllTickets() { 21 return ticketRepository.findAll(); 22 } 23 24 @Override 25 public List<Ticket> findAllByCustomer(Customer customer) { 26 return ticketRepository.findAllByCustomer(customer); 19 27 } 20 28 }
Note:
See TracChangeset
for help on using the changeset viewer.