Skip to content

Auto completion for InheritConfiguration#name, InheritInverseConfiguration#name #163

Open
@alexbudarov

Description

Example code:

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE, componentModel = MappingConstants.ComponentModel.SPRING)
public interface VisitMapper {
    @Mapping(source = "assignedVetId", target = "assignedVet.id")
    @Mapping(source = "petId", target = "pet.id")
    Visit toEntity(VisitDto visitDto);

    @InheritInverseConfiguration(name = "toEntity")
    VisitDto toDto(Visit visit);
}

The @InheritInverseConfiguration#name is referencing a method in the same interface - toEntity().

Would be great to have auto completion and navigation.

Documentation:
https://mapstruct.org/documentation/stable/reference/html/#mapping-configuration-inheritance
https://mapstruct.org/documentation/stable/reference/html/#inverse-mappings

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions