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

import com.qsoft.rs.sincoar.dto.TgenecatalogdetaildescPKDTO;
import com.qsoft.rs.sincoar.model.TgenecatalogdetaildescPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenecatalogdetaildescPK getEntidad(TgenecatalogdetaildescPKDTO tgenecatalogdetaildescPK) {
        if ( tgenecatalogdetaildescPK == null ) {
            return null;
        }

        TgenecatalogdetaildescPK tgenecatalogdetaildescPK1 = new TgenecatalogdetaildescPK();

        tgenecatalogdetaildescPK1.setCatalog( tgenecatalogdetaildescPK.getCatalog() );
        tgenecatalogdetaildescPK1.setCatalogcode( tgenecatalogdetaildescPK.getCatalogcode() );
        tgenecatalogdetaildescPK1.setLanguagecode( tgenecatalogdetaildescPK.getLanguagecode() );

        return tgenecatalogdetaildescPK1;
    }

    @Override
    public TgenecatalogdetaildescPKDTO getDto(TgenecatalogdetaildescPK tgenecatalogdetaildescPK) {
        if ( tgenecatalogdetaildescPK == null ) {
            return null;
        }

        TgenecatalogdetaildescPKDTO tgenecatalogdetaildescPKDTO = new TgenecatalogdetaildescPKDTO();

        tgenecatalogdetaildescPKDTO.setCatalog( tgenecatalogdetaildescPK.getCatalog() );
        tgenecatalogdetaildescPKDTO.setCatalogcode( tgenecatalogdetaildescPK.getCatalogcode() );
        tgenecatalogdetaildescPKDTO.setLanguagecode( tgenecatalogdetaildescPK.getLanguagecode() );

        return tgenecatalogdetaildescPKDTO;
    }
}
