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

import com.qsoft.rs.sincoar.dto.TgenedictionaryPKDTO;
import com.qsoft.rs.sincoar.model.TgenedictionaryPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenedictionaryPK getEntidad(TgenedictionaryPKDTO tgenedictionaryPK) {
        if ( tgenedictionaryPK == null ) {
            return null;
        }

        TgenedictionaryPK tgenedictionaryPK1 = new TgenedictionaryPK();

        tgenedictionaryPK1.setTablename( tgenedictionaryPK.getTablename() );
        tgenedictionaryPK1.setColumnname( tgenedictionaryPK.getColumnname() );

        return tgenedictionaryPK1;
    }

    @Override
    public TgenedictionaryPKDTO getDto(TgenedictionaryPK tgenedictionaryPK) {
        if ( tgenedictionaryPK == null ) {
            return null;
        }

        TgenedictionaryPKDTO tgenedictionaryPKDTO = new TgenedictionaryPKDTO();

        tgenedictionaryPKDTO.setTablename( tgenedictionaryPK.getTablename() );
        tgenedictionaryPKDTO.setColumnname( tgenedictionaryPK.getColumnname() );

        return tgenedictionaryPKDTO;
    }
}
