19 lines
624 B
Java
19 lines
624 B
Java
package ru.soune.no_copy.mapper;
|
|||
|
|
|
||
|
|
import org.mapstruct.Mapper;
|
||
|
|
import org.mapstruct.MappingTarget;
|
||
|
|
import org.mapstruct.NullValuePropertyMappingStrategy;
|
||
|
|
import org.mapstruct.factory.Mappers;
|
||
|
|
import ru.soune.no_copy.dto.UserContentUpdateRequest;
|
||
|
|
import ru.soune.no_copy.entity.UserContent;
|
||
|
|
|
||
|
|
@Mapper(componentModel = "spring",
|
||
|
|
nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
|
||
|
|
public interface UserContentMapper {
|
||
|
|
|
||
|
|
UserContentMapper INSTANCE = Mappers.getMapper(UserContentMapper.class);
|
||
|
|
|
||
|
|
|
||
|
|
void updateEntityFromDto(UserContentUpdateRequest dto, @MappingTarget UserContent entity);
|
||
|
|
}
|