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

import com.qsoft.rs.sincoar.dto.TgenebalancetypePKDTO;
import com.qsoft.rs.sincoar.model.TgenebalancetypePK;
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 TgenebalancetypePKMapperImpl implements TgenebalancetypePKMapper {

    @Override
    public TgenebalancetypePK getEntidad(TgenebalancetypePKDTO tgenebalancetypePK) {
        if ( tgenebalancetypePK == null ) {
            return null;
        }

        TgenebalancetypePK tgenebalancetypePK1 = new TgenebalancetypePK();

        tgenebalancetypePK1.setBalancetype( tgenebalancetypePK.getBalancetype() );
        tgenebalancetypePK1.setBalancegroup( tgenebalancetypePK.getBalancegroup() );

        return tgenebalancetypePK1;
    }

    @Override
    public TgenebalancetypePKDTO getDto(TgenebalancetypePK tgenebalancetypePK) {
        if ( tgenebalancetypePK == null ) {
            return null;
        }

        TgenebalancetypePKDTO tgenebalancetypePKDTO = new TgenebalancetypePKDTO();

        tgenebalancetypePKDTO.setBalancetype( tgenebalancetypePK.getBalancetype() );
        tgenebalancetypePKDTO.setBalancegroup( tgenebalancetypePK.getBalancegroup() );

        return tgenebalancetypePKDTO;
    }
}
