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

import com.qsoft.rs.sincoar.dto.TgenecatalogdescPKDTO;
import com.qsoft.rs.sincoar.model.TgenecatalogdescPK;
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 TgenecatalogdescPKMapperImpl implements TgenecatalogdescPKMapper {

    @Override
    public TgenecatalogdescPK getEntidad(TgenecatalogdescPKDTO tgenecatalogdescPK) {
        if ( tgenecatalogdescPK == null ) {
            return null;
        }

        TgenecatalogdescPK tgenecatalogdescPK1 = new TgenecatalogdescPK();

        tgenecatalogdescPK1.setCatalogcode( tgenecatalogdescPK.getCatalogcode() );
        tgenecatalogdescPK1.setLanguagecode( tgenecatalogdescPK.getLanguagecode() );

        return tgenecatalogdescPK1;
    }

    @Override
    public TgenecatalogdescPKDTO getDto(TgenecatalogdescPK tgenecatalogdescPK) {
        if ( tgenecatalogdescPK == null ) {
            return null;
        }

        TgenecatalogdescPKDTO tgenecatalogdescPKDTO = new TgenecatalogdescPKDTO();

        tgenecatalogdescPKDTO.setCatalogcode( tgenecatalogdescPK.getCatalogcode() );
        tgenecatalogdescPKDTO.setLanguagecode( tgenecatalogdescPK.getLanguagecode() );

        return tgenecatalogdescPKDTO;
    }
}
