Files
no-copy/src/main/java/ru/soune/nocopy/mapper/UserMapper.java
T
vladp 7e2dd4a654
Test Workflow / test (push) Successful in 3s
fix path
2025-12-17 22:37:46 +07:00

17 lines
474 B
Java

package ru.soune.nocopy.mapper;
import org.mapstruct.Mapper;
import org.mapstruct.NullValuePropertyMappingStrategy;
import org.mapstruct.factory.Mappers;
import ru.soune.nocopy.dto.UserDTO;
import ru.soune.nocopy.entity.User;
@Mapper(componentModel = "spring",
nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface UserMapper {
UserMapper INSTANCE = Mappers.getMapper(UserMapper.class);
UserDTO toDTO(User user);
}