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

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

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