main
Last change
on this file since 65b6638 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | package com.example.rezevirajmasa.demo.service;
|
---|
2 |
|
---|
3 | import com.example.rezevirajmasa.demo.model.Restaurant;
|
---|
4 | import com.example.rezevirajmasa.demo.model.TableEntity;
|
---|
5 | import jakarta.persistence.Table;
|
---|
6 |
|
---|
7 | import java.time.LocalDate;
|
---|
8 | import java.time.LocalDateTime;
|
---|
9 | import java.time.LocalTime;
|
---|
10 | import java.util.List;
|
---|
11 |
|
---|
12 | public 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.