Skip to content

Renaming a @Getter annotated field results in a getter inside the mapping definition (instead of the new field name) #197

@lmartelli

Description

@lmartelli
public class User {
    String name;
}

@Mapper
public interface UserMapper {
    @Mapping(source="name", target="nom")
    UserDto toDto(User user)
}

When you rename User.name to lastName, the mapping becomes @Mapping(source="getLastName", target="nom")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions