package com.qsoft.rs.sincoar.dominio.mapper;

import com.qsoft.rs.sincoar.dto.TgenesubproductPKDTO;
import com.qsoft.rs.sincoar.model.TgenesubproductPK;
import javax.annotation.processing.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2022-09-02T16:14:48-0500",
    comments = "version: 1.5.2.Final, compiler: javac, environment: Java 17.0.4 (Private Build)"
)
public class TgenesubproductPKMapperImpl implements TgenesubproductPKMapper {

    @Override
    public TgenesubproductPK getEntidad(TgenesubproductPKDTO tgenesubproductPK) {
        if ( tgenesubproductPK == null ) {
            return null;
        }

        TgenesubproductPK tgenesubproductPK1 = new TgenesubproductPK();

        tgenesubproductPK1.setModulecode( tgenesubproductPK.getModulecode() );
        tgenesubproductPK1.setProductcode( tgenesubproductPK.getProductcode() );
        tgenesubproductPK1.setSubproductcode( tgenesubproductPK.getSubproductcode() );

        return tgenesubproductPK1;
    }

    @Override
    public TgenesubproductPKDTO getDto(TgenesubproductPK tgenesubproductPK) {
        if ( tgenesubproductPK == null ) {
            return null;
        }

        TgenesubproductPKDTO tgenesubproductPKDTO = new TgenesubproductPKDTO();

        tgenesubproductPKDTO.setModulecode( tgenesubproductPK.getModulecode() );
        tgenesubproductPKDTO.setProductcode( tgenesubproductPK.getProductcode() );
        tgenesubproductPKDTO.setSubproductcode( tgenesubproductPK.getSubproductcode() );

        return tgenesubproductPKDTO;
    }
}
