Skip to content

Cannot create a method where the returned object is a String  #584

@zamrokk

Description

@zamrokk

Hi ,
i try to create a map function like this (used by more complex other mapping functions) :

@mapping(source="dto.field1")
String dtoToString(Dto dto);

Actually, a "target" is required if i use the "source". Same issue using "expression", a "target" is needed.

How can i make it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions