Uses of Class
com.equipmentrental.equipment_rental_system.model.Booking
Packages that use Booking
Package
Description
-
Uses of Booking in com.equipmentrental.equipment_rental_system.controller
Methods in com.equipmentrental.equipment_rental_system.controller with parameters of type Booking -
Uses of Booking in com.equipmentrental.equipment_rental_system.model
Methods in com.equipmentrental.equipment_rental_system.model with parameters of type BookingModifier and TypeMethodDescriptionbooleanBooking.hasConflictWith(Booking otherBooking) Checks whether this booking's date range overlaps with another booking. -
Uses of Booking in com.equipmentrental.equipment_rental_system.repository
Subinterfaces with type arguments of type Booking in com.equipmentrental.equipment_rental_system.repositoryMethods in com.equipmentrental.equipment_rental_system.repository that return types with arguments of type BookingModifier and TypeMethodDescriptionBookingRepository.findByEquipmentId(Long equipmentId) Finds all bookings for a specific equipment item.BookingRepository.findByStatus(BookingStatus status) Finds all bookings with a specific status.BookingRepository.findByUserId(Long userId) Finds all bookings created by a specific user.BookingRepository.findConflictingBookings(Long equipmentId, LocalDate dateFrom, LocalDate dateTo) Finds confirmed bookings for a given equipment item that overlap with the specified date range. -
Uses of Booking in com.equipmentrental.equipment_rental_system.service
Methods in com.equipmentrental.equipment_rental_system.service that return BookingModifier and TypeMethodDescriptionBookingService.cancelBooking(Long bookingId) Cancels an existing booking and updates the equipment status if appropriate (BR-08).BookingService.createBooking(Booking booking) Creates a new booking after validating all business rules.Finds a booking by its ID.Methods in com.equipmentrental.equipment_rental_system.service that return types with arguments of type BookingModifier and TypeMethodDescriptionBookingService.findAll()Returns all bookings in the system.BookingService.findByEquipmentId(Long equipmentId) Finds all bookings for a specific equipment item.BookingService.findByUserId(Long userId) Finds all bookings created by a specific user.Methods in com.equipmentrental.equipment_rental_system.service with parameters of type BookingModifier and TypeMethodDescriptionBookingService.createBooking(Booking booking) Creates a new booking after validating all business rules.