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

import com.qsoft.rs.sincoar.dto.TgeneinstallmenttypePKDTO;
import com.qsoft.rs.sincoar.model.TgeneinstallmenttypePK;
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 TgeneinstallmenttypePKMapperImpl implements TgeneinstallmenttypePKMapper {

    @Override
    public TgeneinstallmenttypePK getEntidad(TgeneinstallmenttypePKDTO tgeneinstallmenttypePK) {
        if ( tgeneinstallmenttypePK == null ) {
            return null;
        }

        TgeneinstallmenttypePK tgeneinstallmenttypePK1 = new TgeneinstallmenttypePK();

        tgeneinstallmenttypePK1.setInstallmenttype( tgeneinstallmenttypePK.getInstallmenttype() );
        tgeneinstallmenttypePK1.setModulecode( tgeneinstallmenttypePK.getModulecode() );

        return tgeneinstallmenttypePK1;
    }

    @Override
    public TgeneinstallmenttypePKDTO getDto(TgeneinstallmenttypePK tgeneinstallmenttypePK) {
        if ( tgeneinstallmenttypePK == null ) {
            return null;
        }

        TgeneinstallmenttypePKDTO tgeneinstallmenttypePKDTO = new TgeneinstallmenttypePKDTO();

        tgeneinstallmenttypePKDTO.setInstallmenttype( tgeneinstallmenttypePK.getInstallmenttype() );
        tgeneinstallmenttypePKDTO.setModulecode( tgeneinstallmenttypePK.getModulecode() );

        return tgeneinstallmenttypePKDTO;
    }
}
