Skip to content

VSN 1925 : Adding all necessary preparation related elements + Implementing the feature of saving a new Prepared Passenger .

yassine.elazami a demandé de fusionner VSN/1925 vers develop

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 UUID instead of incremental IDs (BaseEntityDTO).
  • Added UserPassengerDTO, RepresentativeDTO, and PassengerRepresentativeDTO.
  • 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 ModelMapper adapted for the PreparedPassenger entity.
  • Updated mapping logic for both Passenger and Representative entities to ensure proper sub-object composition and entity conversion.

5. Passenger Module

  • Added core functionality for managing prepared passengers.
  • Finalized PassengerMapper and save logic.
  • Introduced a PassengerController to expose passenger creation endpoints.
  • Refactored passenger saving logic to remove unnecessary technical exceptions.
  • Corrected composition issues in nested object mappings.

6. Address Module

  • Implemented AddressService along with related components (Mapper, ServiceImpl).

7. Day Schedule Representative

  • Added a Mapper and Repository for the PreparedDayScheduleRepresentative entity, to support the transport service layer.

8. Transport Schedule

  • Finalized service implementation for transport scheduling.

Documentation

  • Added and updated CHANGELOG.md to 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.

Modification effectuée par yassine.elazami

Rapports de requête de fusion