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

com.arextest.storage.mapper.AREXMockerMapperImpl Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package com.arextest.storage.mapper;

import com.arextest.model.mock.AREXMocker;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2024-09-19T06:48:06+0000",
    comments = "version: 1.2.0.Final, compiler: javac, environment: Java 11.0.24 (Eclipse Adoptium)"
)
public class AREXMockerMapperImpl implements AREXMockerMapper {

    @Override
    public AREXMocker dtoFromEntity(AREXMocker entity) {
        if ( entity == null ) {
            return null;
        }

        AREXMocker aREXMocker = new AREXMocker();

        aREXMocker.setId( entity.getId() );
        aREXMocker.setReplayId( entity.getReplayId() );
        aREXMocker.setRecordId( entity.getRecordId() );
        aREXMocker.setAppId( entity.getAppId() );
        aREXMocker.setRecordEnvironment( entity.getRecordEnvironment() );
        aREXMocker.setCreationTime( entity.getCreationTime() );
        aREXMocker.setUpdateTime( entity.getUpdateTime() );
        aREXMocker.setExpirationTime( entity.getExpirationTime() );
        aREXMocker.setOperationName( entity.getOperationName() );
        aREXMocker.setRecordVersion( entity.getRecordVersion() );
        Map map = entity.getTags();
        if ( map != null ) {
            aREXMocker.setTags( new HashMap( map ) );
        }
        else {
            aREXMocker.setTags( null );
        }
        aREXMocker.setIndex( entity.getIndex() );
        aREXMocker.setUseMock( entity.getUseMock() );
        aREXMocker.setCategoryType( entity.getCategoryType() );
        aREXMocker.setTargetRequest( entity.getTargetRequest() );
        aREXMocker.setTargetResponse( entity.getTargetResponse() );
        Map map1 = entity.getEigenMap();
        if ( map1 != null ) {
            aREXMocker.setEigenMap( new HashMap( map1 ) );
        }
        else {
            aREXMocker.setEigenMap( null );
        }

        return aREXMocker;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy