Skip to content

Commit

Permalink
feat: changed null mapping strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
JordenReuter committed Oct 9, 2024
1 parent a5f2b5e commit 839d114
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ default MenuItem create(CreateMenuItemDTO dto, Workspace workspace, MenuItem par

@Mapping(target = "workspace", ignore = true)
@Mapping(target = "workspaceId", ignore = true)
@BeanMapping(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
@Mapping(target = "id", ignore = true)
@Mapping(target = "creationDate", ignore = true)
@Mapping(target = "creationUser", ignore = true)
Expand All @@ -72,6 +71,7 @@ default MenuItem create(CreateMenuItemDTO dto, Workspace workspace, MenuItem par
@Mapping(target = "children", ignore = true)
@Mapping(target = "tenantId", ignore = true)
@Mapping(target = "parentId", ignore = true)
@Mapping(target = "name", nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
void update(UpdateMenuItemRequestDTO menuItemDetailsDto, @MappingTarget MenuItem entity);

@Mapping(target = "removeI18nItem", ignore = true)
Expand Down

0 comments on commit 839d114

Please sign in to comment.