All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.adorsys.ledgers.postings.impl.converter.ChartOfAccountMapperImpl Maven / Gradle / Ivy

There is a newer version: 4.17
Show newest version
package de.adorsys.ledgers.postings.impl.converter;

import de.adorsys.ledgers.postings.api.domain.ChartOfAccountBO;
import de.adorsys.ledgers.postings.db.domain.ChartOfAccount;
import javax.annotation.processing.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2021-01-28T10:29:40+0000",
    comments = "version: 1.3.1.Final, compiler: javac, environment: Java 11.0.10 (Azul Systems, Inc.)"
)
public class ChartOfAccountMapperImpl implements ChartOfAccountMapper {

    @Override
    public ChartOfAccountBO toChartOfAccountBO(ChartOfAccount coa) {
        if ( coa == null ) {
            return null;
        }

        ChartOfAccountBO chartOfAccountBO = new ChartOfAccountBO();

        chartOfAccountBO.setName( coa.getName() );
        chartOfAccountBO.setId( coa.getId() );
        chartOfAccountBO.setCreated( coa.getCreated() );
        chartOfAccountBO.setUserDetails( coa.getUserDetails() );
        chartOfAccountBO.setShortDesc( coa.getShortDesc() );
        chartOfAccountBO.setLongDesc( coa.getLongDesc() );

        return chartOfAccountBO;
    }

    @Override
    public ChartOfAccount toChartOfAccount(ChartOfAccountBO coa) {
        if ( coa == null ) {
            return null;
        }

        ChartOfAccount chartOfAccount = new ChartOfAccount();

        chartOfAccount.setId( coa.getId() );
        chartOfAccount.setCreated( coa.getCreated() );
        chartOfAccount.setUserDetails( coa.getUserDetails() );
        chartOfAccount.setShortDesc( coa.getShortDesc() );
        chartOfAccount.setLongDesc( coa.getLongDesc() );
        chartOfAccount.setName( coa.getName() );

        return chartOfAccount;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy