Skip to content

Commit

Permalink
MODTLR-5 fix code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-barannyk committed Jan 17, 2024
1 parent 21001d6 commit f7f2b40
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/main/java/org/folio/domain/mapper/EcsTlrMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@
import org.folio.domain.entity.EcsTlrEntity;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.Named;
import org.mapstruct.NullValueCheckStrategy;

@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface EcsTlrMapper {

@Mappings({
@Mapping(target="requestType", qualifiedByName = "StringToRequestType"),
@Mapping(target="requestLevel", qualifiedByName = "StringToRequestLevel"),
@Mapping(target="fulfillmentPreference", qualifiedByName = "StringToFulfillmentPreference")
})
@Mapping(target = "requestType", qualifiedByName = "StringToRequestType")
@Mapping(target = "requestLevel", qualifiedByName = "StringToRequestLevel")
@Mapping(target = "fulfillmentPreference", qualifiedByName = "StringToFulfillmentPreference")
EcsTlr mapEntityToDto(EcsTlrEntity ecsTlrEntity);
EcsTlrEntity mapDtoToEntity(EcsTlr ecsTlr);

Expand Down

0 comments on commit f7f2b40

Please sign in to comment.