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

import com.qsoft.rs.sincoar.dto.TgenebalancegroupdescPKDTO;
import com.qsoft.rs.sincoar.model.TgenebalancegroupdescPK;
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 TgenebalancegroupdescPKMapperImpl implements TgenebalancegroupdescPKMapper {

    @Override
    public TgenebalancegroupdescPK getEntidad(TgenebalancegroupdescPKDTO tgenebalancegroupdescPK) {
        if ( tgenebalancegroupdescPK == null ) {
            return null;
        }

        TgenebalancegroupdescPK tgenebalancegroupdescPK1 = new TgenebalancegroupdescPK();

        tgenebalancegroupdescPK1.setBalancegroup( tgenebalancegroupdescPK.getBalancegroup() );
        tgenebalancegroupdescPK1.setLanguagecode( tgenebalancegroupdescPK.getLanguagecode() );

        return tgenebalancegroupdescPK1;
    }

    @Override
    public TgenebalancegroupdescPKDTO getDto(TgenebalancegroupdescPK tgenebalancegroupdescPK) {
        if ( tgenebalancegroupdescPK == null ) {
            return null;
        }

        TgenebalancegroupdescPKDTO tgenebalancegroupdescPKDTO = new TgenebalancegroupdescPKDTO();

        tgenebalancegroupdescPKDTO.setBalancegroup( tgenebalancegroupdescPK.getBalancegroup() );
        tgenebalancegroupdescPKDTO.setLanguagecode( tgenebalancegroupdescPK.getLanguagecode() );

        return tgenebalancegroupdescPKDTO;
    }
}
