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

import com.qsoft.rs.sincoar.dto.TgeneprovincePKDTO;
import com.qsoft.rs.sincoar.model.TgeneprovincePK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgeneprovincePK getEntidad(TgeneprovincePKDTO tgeneprovincePK) {
        if ( tgeneprovincePK == null ) {
            return null;
        }

        TgeneprovincePK tgeneprovincePK1 = new TgeneprovincePK();

        tgeneprovincePK1.setCountrycode( tgeneprovincePK.getCountrycode() );
        tgeneprovincePK1.setProvincecode( tgeneprovincePK.getProvincecode() );

        return tgeneprovincePK1;
    }

    @Override
    public TgeneprovincePKDTO getDto(TgeneprovincePK tgeneprovincePK) {
        if ( tgeneprovincePK == null ) {
            return null;
        }

        TgeneprovincePKDTO tgeneprovincePKDTO = new TgeneprovincePKDTO();

        tgeneprovincePKDTO.setCountrycode( tgeneprovincePK.getCountrycode() );
        tgeneprovincePKDTO.setProvincecode( tgeneprovincePK.getProvincecode() );

        return tgeneprovincePKDTO;
    }
}
