Skip to content

Commit

Permalink
chore: Define correct component model for MapStruct mappers
Browse files Browse the repository at this point in the history
  • Loading branch information
mthmulders committed Dec 31, 2024
1 parent 929e2df commit c048e03
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
import it.mulders.traqqr.domain.vehicles.Vehicle;

import org.mapstruct.Mapper;
import org.mapstruct.MappingConstants;

@Mapper(componentModel = "jakarta")
@Mapper(componentModel = MappingConstants.ComponentModel.JAKARTA_CDI)
public interface MeasurementMapper {
Measurement toMeasurement(Vehicle vehicle, MeasurementDto measurementDto);
}

0 comments on commit c048e03

Please sign in to comment.