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

import com.qsoft.rs.sincoar.dto.TgeneinstallmenttypedescPKDTO;
import com.qsoft.rs.sincoar.model.TgeneinstallmenttypedescPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgeneinstallmenttypedescPK getEntidad(TgeneinstallmenttypedescPKDTO tgeneinstallmenttypedescPK) {
        if ( tgeneinstallmenttypedescPK == null ) {
            return null;
        }

        TgeneinstallmenttypedescPK tgeneinstallmenttypedescPK1 = new TgeneinstallmenttypedescPK();

        tgeneinstallmenttypedescPK1.setInstallmenttype( tgeneinstallmenttypedescPK.getInstallmenttype() );
        tgeneinstallmenttypedescPK1.setModulecode( tgeneinstallmenttypedescPK.getModulecode() );
        tgeneinstallmenttypedescPK1.setLanguagecode( tgeneinstallmenttypedescPK.getLanguagecode() );

        return tgeneinstallmenttypedescPK1;
    }

    @Override
    public TgeneinstallmenttypedescPKDTO getDto(TgeneinstallmenttypedescPK tgeneinstallmenttypedescPK) {
        if ( tgeneinstallmenttypedescPK == null ) {
            return null;
        }

        TgeneinstallmenttypedescPKDTO tgeneinstallmenttypedescPKDTO = new TgeneinstallmenttypedescPKDTO();

        tgeneinstallmenttypedescPKDTO.setInstallmenttype( tgeneinstallmenttypedescPK.getInstallmenttype() );
        tgeneinstallmenttypedescPKDTO.setModulecode( tgeneinstallmenttypedescPK.getModulecode() );
        tgeneinstallmenttypedescPKDTO.setLanguagecode( tgeneinstallmenttypedescPK.getLanguagecode() );

        return tgeneinstallmenttypedescPKDTO;
    }
}
