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

import com.qsoft.rs.sincoar.dto.MdRegistryPKDTO;
import com.qsoft.rs.sincoar.model.MdRegistryPK;
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 MdRegistryPKMapperImpl implements MdRegistryPKMapper {

    @Override
    public MdRegistryPK getEntidad(MdRegistryPKDTO mdRegistryPK) {
        if ( mdRegistryPK == null ) {
            return null;
        }

        MdRegistryPK mdRegistryPK1 = new MdRegistryPK();

        mdRegistryPK1.setObjectType( mdRegistryPK.getObjectType() );
        mdRegistryPK1.setObjectName( mdRegistryPK.getObjectName() );

        return mdRegistryPK1;
    }

    @Override
    public MdRegistryPKDTO getDto(MdRegistryPK mdRegistryPK) {
        if ( mdRegistryPK == null ) {
            return null;
        }

        MdRegistryPKDTO mdRegistryPKDTO = new MdRegistryPKDTO();

        mdRegistryPKDTO.setObjectType( mdRegistryPK.getObjectType() );
        mdRegistryPKDTO.setObjectName( mdRegistryPK.getObjectName() );

        return mdRegistryPKDTO;
    }
}
