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

import com.qsoft.rs.sincoar.dto.TgenesubproductdescPKDTO;
import com.qsoft.rs.sincoar.model.TgenesubproductdescPK;
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 TgenesubproductdescPKMapperImpl implements TgenesubproductdescPKMapper {

    @Override
    public TgenesubproductdescPK getEntidad(TgenesubproductdescPKDTO tgenesubproductdescPK) {
        if ( tgenesubproductdescPK == null ) {
            return null;
        }

        TgenesubproductdescPK tgenesubproductdescPK1 = new TgenesubproductdescPK();

        tgenesubproductdescPK1.setModulecode( tgenesubproductdescPK.getModulecode() );
        tgenesubproductdescPK1.setProductcode( tgenesubproductdescPK.getProductcode() );
        tgenesubproductdescPK1.setSubproductcode( tgenesubproductdescPK.getSubproductcode() );
        tgenesubproductdescPK1.setLanguagecode( tgenesubproductdescPK.getLanguagecode() );

        return tgenesubproductdescPK1;
    }

    @Override
    public TgenesubproductdescPKDTO getDto(TgenesubproductdescPK tgenesubproductdescPK) {
        if ( tgenesubproductdescPK == null ) {
            return null;
        }

        TgenesubproductdescPKDTO tgenesubproductdescPKDTO = new TgenesubproductdescPKDTO();

        tgenesubproductdescPKDTO.setModulecode( tgenesubproductdescPK.getModulecode() );
        tgenesubproductdescPKDTO.setProductcode( tgenesubproductdescPK.getProductcode() );
        tgenesubproductdescPKDTO.setSubproductcode( tgenesubproductdescPK.getSubproductcode() );
        tgenesubproductdescPKDTO.setLanguagecode( tgenesubproductdescPK.getLanguagecode() );

        return tgenesubproductdescPKDTO;
    }
}
