Changeset 3242ef4 for src/main/java/com/example
- Timestamp:
- 02/07/23 14:39:49 (23 months ago)
- Branches:
- master
- Children:
- 3650316, fdc651c
- Parents:
- 03fd098
- Location:
- src/main/java/com/example/moviezone
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/model/Ticket.java
r03fd098 r3242ef4 28 28 Customer customer; 29 29 30 public Ticket(long price, Customer customer) { 31 this.price = price; 32 this.customer = customer; 33 this.date_reserved=LocalDate.now(); 34 } 30 35 36 public Ticket() { 31 37 32 38 } 33 39 } -
src/main/java/com/example/moviezone/service/Impl/TicketServiceImpl.java
r03fd098 r3242ef4 26 26 return ticketRepository.findAllByCustomer(customer); 27 27 } 28 29 @Override 30 public Ticket save(long price, Customer customer) { 31 return ticketRepository.save(new Ticket(price,customer)); 32 } 28 33 } -
src/main/java/com/example/moviezone/service/TicketService.java
r03fd098 r3242ef4 9 9 List<Ticket> findAllTickets(); 10 10 List<Ticket> findAllByCustomer(Customer customer); 11 12 Ticket save(long price,Customer customer); 11 13 }
Note:
See TracChangeset
for help on using the changeset viewer.