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:
612 bytes
|
Line | |
---|
1 | package com.example.rezevirajmasa.demo.component;
|
---|
2 |
|
---|
3 | import com.example.rezevirajmasa.demo.service.ReservationService;
|
---|
4 | import jakarta.annotation.PostConstruct;
|
---|
5 | import org.springframework.scheduling.annotation.Scheduled;
|
---|
6 | import org.springframework.stereotype.Component;
|
---|
7 |
|
---|
8 | @Component
|
---|
9 | public class ReservationScheduler {
|
---|
10 | private final ReservationService reservationService;
|
---|
11 |
|
---|
12 | public ReservationScheduler(ReservationService reservationService) {
|
---|
13 | this.reservationService = reservationService;
|
---|
14 | }
|
---|
15 |
|
---|
16 | @PostConstruct
|
---|
17 | void runOnStartup() {
|
---|
18 | reservationService.findReservationsToMove();
|
---|
19 | }
|
---|
20 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.