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

import com.qsoft.rs.sincoar.dto.TgenecatalogdetailPKDTO;
import com.qsoft.rs.sincoar.model.TgenecatalogdetailPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenecatalogdetailPK getEntidad(TgenecatalogdetailPKDTO tgenecatalogdetailPK) {
        if ( tgenecatalogdetailPK == null ) {
            return null;
        }

        TgenecatalogdetailPK tgenecatalogdetailPK1 = new TgenecatalogdetailPK();

        tgenecatalogdetailPK1.setCatalog( tgenecatalogdetailPK.getCatalog() );
        tgenecatalogdetailPK1.setCatalogcode( tgenecatalogdetailPK.getCatalogcode() );

        return tgenecatalogdetailPK1;
    }

    @Override
    public TgenecatalogdetailPKDTO getDto(TgenecatalogdetailPK tgenecatalogdetailPK) {
        if ( tgenecatalogdetailPK == null ) {
            return null;
        }

        TgenecatalogdetailPKDTO tgenecatalogdetailPKDTO = new TgenecatalogdetailPKDTO();

        tgenecatalogdetailPKDTO.setCatalog( tgenecatalogdetailPK.getCatalog() );
        tgenecatalogdetailPKDTO.setCatalogcode( tgenecatalogdetailPK.getCatalogcode() );

        return tgenecatalogdetailPKDTO;
    }
}
