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

import com.qsoft.rs.sincoar.dto.TgenefieldsPKDTO;
import com.qsoft.rs.sincoar.model.TgenefieldsPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenefieldsPK getEntidad(TgenefieldsPKDTO tgenefieldsPK) {
        if ( tgenefieldsPK == null ) {
            return null;
        }

        TgenefieldsPK tgenefieldsPK1 = new TgenefieldsPK();

        tgenefieldsPK1.setTname( tgenefieldsPK.getTname() );
        tgenefieldsPK1.setEntity( tgenefieldsPK.getEntity() );
        tgenefieldsPK1.setField( tgenefieldsPK.getField() );

        return tgenefieldsPK1;
    }

    @Override
    public TgenefieldsPKDTO getDto(TgenefieldsPK tgenefieldsPK) {
        if ( tgenefieldsPK == null ) {
            return null;
        }

        TgenefieldsPKDTO tgenefieldsPKDTO = new TgenefieldsPKDTO();

        tgenefieldsPKDTO.setTname( tgenefieldsPK.getTname() );
        tgenefieldsPKDTO.setEntity( tgenefieldsPK.getEntity() );
        tgenefieldsPKDTO.setField( tgenefieldsPK.getField() );

        return tgenefieldsPKDTO;
    }
}
