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

import com.qsoft.rs.sincoar.dto.TgeneentityPKDTO;
import com.qsoft.rs.sincoar.model.TgeneentityPK;
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 TgeneentityPKMapperImpl implements TgeneentityPKMapper {

    @Override
    public TgeneentityPK getEntidad(TgeneentityPKDTO tgeneentityPK) {
        if ( tgeneentityPK == null ) {
            return null;
        }

        TgeneentityPK tgeneentityPK1 = new TgeneentityPK();

        tgeneentityPK1.setTname( tgeneentityPK.getTname() );
        tgeneentityPK1.setEntity( tgeneentityPK.getEntity() );

        return tgeneentityPK1;
    }

    @Override
    public TgeneentityPKDTO getDto(TgeneentityPK tgeneentityPK) {
        if ( tgeneentityPK == null ) {
            return null;
        }

        TgeneentityPKDTO tgeneentityPKDTO = new TgeneentityPKDTO();

        tgeneentityPKDTO.setTname( tgeneentityPK.getTname() );
        tgeneentityPKDTO.setEntity( tgeneentityPK.getEntity() );

        return tgeneentityPKDTO;
    }
}
