source: src/main/java/com/example/rezevirajmasa/demo/service/TableService.java@ deea3c4

main
Last change on this file since deea3c4 was deea3c4, checked in by Aleksandar Panovski <apano77@…>, 3 weeks ago

Big change done fully handle_reservation_update() trigger works

  • Property mode set to 100644
File size: 1.1 KB
Line 
1package com.example.rezevirajmasa.demo.service;
2
3import com.example.rezevirajmasa.demo.dto.TableDTO;
4import com.example.rezevirajmasa.demo.model.Restaurant;
5import com.example.rezevirajmasa.demo.model.TableEntity;
6import jakarta.persistence.Table;
7
8import java.time.LocalDate;
9import java.time.LocalDateTime;
10import java.time.LocalTime;
11import java.util.List;
12
13public interface TableService {
14 List<TableEntity> listall();
15 TableDTO findById(Long id);
16 TableEntity findByIdTable(Long id);
17 void save(int numberOfTables, List<Integer> tableCapacities, List<String> tableLocations, List<String> tableSmokingAreas, List<String> tableDescriptions, Restaurant restaurant);
18 void deleteTimeSlotsForReservation(Long tableId, LocalDateTime reservationTime);
19 void canceledTimeSlots(Long tableId, LocalDateTime reservationTime);
20 TableEntity getTableByNumber(Long number);
21 TableEntity deleteTable(Long number);
22 void saveTable(TableEntity table);
23 boolean hasAvailableTimeSlotsForRestaurantAndDate(Restaurant restaurant, LocalDate today);
24 public boolean hasAvailableTimeSlotsForTableAndDate(TableEntity table, LocalDate date);
25}
Note: See TracBrowser for help on using the repository browser.