com.arextest.storage.mapper.AppContractMapperImpl Maven / Gradle / Ivy
package com.arextest.storage.mapper;
import com.arextest.config.model.dto.application.AppContract;
import com.arextest.storage.model.AppContractCollection;
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 AppContractMapperImpl implements AppContractMapper {
@Override
public AppContractCollection daoFromDto(AppContract dto) {
if ( dto == null ) {
return null;
}
AppContractCollection appContractCollection = new AppContractCollection();
appContractCollection.setId( dto.getId() );
appContractCollection.setAppId( dto.getAppId() );
appContractCollection.setContractType( dto.getContractType() );
appContractCollection.setOperationId( dto.getOperationId() );
appContractCollection.setOperationName( dto.getOperationName() );
appContractCollection.setOperationType( dto.getOperationType() );
appContractCollection.setContract( dto.getContract() );
return appContractCollection;
}
@Override
public AppContract dtoFromDao(AppContractCollection dao) {
if ( dao == null ) {
return null;
}
AppContract appContract = new AppContract();
appContract.setId( dao.getId() );
appContract.setAppId( dao.getAppId() );
appContract.setContractType( dao.getContractType() );
appContract.setOperationId( dao.getOperationId() );
appContract.setOperationName( dao.getOperationName() );
appContract.setOperationType( dao.getOperationType() );
appContract.setContract( dao.getContract() );
return appContract;
}
}