Files
no-copy/src/main/java/ru/soune/nocopy/mapper/UserMapper.java
T

17 lines
484 B
Java
Raw Normal View History

2025-12-10 19:12:54 +07:00
package ru.soune.nocopy.mapper;
import org.mapstruct.Mapper;
import org.mapstruct.NullValuePropertyMappingStrategy;
import org.mapstruct.factory.Mappers;
2026-01-20 03:47:51 +07:00
import ru.soune.nocopy.dto.user.UserDTO;
import ru.soune.nocopy.entity.user.User;
@Mapper(componentModel = "spring",
nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface UserMapper {
UserMapper INSTANCE = Mappers.getMapper(UserMapper.class);
UserDTO toDTO(User user);
}