This commit is contained in:
Bhumi Shah
2025-12-06 17:13:28 +03:00
parent ae1cfa3a32
commit 0cf5cfdf59
3 changed files with 11 additions and 6 deletions

View File

@@ -89,7 +89,7 @@ public class BookingServiceImpl implements BookingService {
throw new IllegalArgumentException("Place already booked for this date");
}
Booking booking = new Booking();
booking.setEmployee((Map<String, Object>) employee);
booking.setEmployee((Employee) employee);
booking.setPlace(place);
booking.setDate(bookingDate);
bookingRepository.save(booking);