VSN 1925 : Adding all necessary preparation related elements + Implementing the feature of saving a new Prepared Passenger .
Merge Request Description
Overview
This merge introduces several improvements and new components related to DTOs, mappers, services, and the passenger management workflow. The main focus was to finalize entity mappings, validation logic, and service composition for passenger-related features.
Summary of Changes
1. Project Cleanup
- Removed unnecessary default files (
controller,service,service implementation).
2. DTOs
- Introduced generic DTOs with
UUIDinstead of incremental IDs (BaseEntityDTO). - Added
UserPassengerDTO,RepresentativeDTO, andPassengerRepresentativeDTO. - Defined transport-related DTOs (
TransportDTO,RepresentativeTransportDTO, etc.). - Completed missing DTOs for passenger and transport modules.
3. Validators
- Implemented validation functions based on the existence of previous identifiers.
4. Mappers
- Configured a
ModelMapperadapted for thePreparedPassengerentity. - Updated mapping logic for both
PassengerandRepresentativeentities to ensure proper sub-object composition and entity conversion.
5. Passenger Module
- Added core functionality for managing prepared passengers.
- Finalized
PassengerMapperand save logic. - Introduced a
PassengerControllerto expose passenger creation endpoints. - Refactored passenger saving logic to remove unnecessary technical exceptions.
- Corrected composition issues in nested object mappings.
6. Address Module
- Implemented
AddressServicealong with related components (Mapper,ServiceImpl).
7. Day Schedule Representative
- Added a
MapperandRepositoryfor thePreparedDayScheduleRepresentativeentity, to support the transport service layer.
8. Transport Schedule
- Finalized service implementation for transport scheduling.
Documentation
- Added and updated
CHANGELOG.mdto track development progress.
Notes
This merge establishes a complete foundation for the passenger management feature, ensuring consistent entity relationships, mapping correctness, and modular service design. It also cleans up unused elements from initial project scaffolding.