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

import com.qsoft.rs.sincoar.dto.TgenecatalogdetailtestPKDTO;
import com.qsoft.rs.sincoar.model.TgenecatalogdetailtestPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenecatalogdetailtestPK getEntidad(TgenecatalogdetailtestPKDTO tgenecatalogdetailtestPK) {
        if ( tgenecatalogdetailtestPK == null ) {
            return null;
        }

        TgenecatalogdetailtestPK tgenecatalogdetailtestPK1 = new TgenecatalogdetailtestPK();

        tgenecatalogdetailtestPK1.setCatalog( tgenecatalogdetailtestPK.getCatalog() );
        tgenecatalogdetailtestPK1.setCatalogcode( tgenecatalogdetailtestPK.getCatalogcode() );

        return tgenecatalogdetailtestPK1;
    }

    @Override
    public TgenecatalogdetailtestPKDTO getDto(TgenecatalogdetailtestPK tgenecatalogdetailtestPK) {
        if ( tgenecatalogdetailtestPK == null ) {
            return null;
        }

        TgenecatalogdetailtestPKDTO tgenecatalogdetailtestPKDTO = new TgenecatalogdetailtestPKDTO();

        tgenecatalogdetailtestPKDTO.setCatalog( tgenecatalogdetailtestPK.getCatalog() );
        tgenecatalogdetailtestPKDTO.setCatalogcode( tgenecatalogdetailtestPK.getCatalogcode() );

        return tgenecatalogdetailtestPKDTO;
    }
}
