Skip to content

Commit

Permalink
Fix warnings about Unmapped target property
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-punko committed Apr 2, 2024
1 parent d181623 commit 57d5a85
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.NullValuePropertyMappingStrategy;
import org.mapstruct.ReportingPolicy;

@Mapper(componentModel = "spring", nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
@Mapper(componentModel = "spring",
nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE,
unmappedTargetPolicy = ReportingPolicy.IGNORE
)
public interface ArticleMapper {

ArticleDto toArticleDto(Article source);
Expand Down

0 comments on commit 57d5a85

Please sign in to comment.