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

de.adorsys.multibanking.jpa.mapper.JpaEntityMapper Maven / Gradle / Ivy

There is a newer version: 5.5.43
Show newest version
package de.adorsys.multibanking.jpa.mapper;

import de.adorsys.multibanking.domain.*;
import de.adorsys.multibanking.jpa.entity.*;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(componentModel = "spring")
public interface JpaEntityMapper {

    AccountAnalyticsEntity mapToAccountAnalyticsEntity(AccountAnalyticsJpaEntity accountAnalyticsEntity);

    @Mapping(source = "periodStart", target = "start")
    @Mapping(source = "periodEnd", target = "end")
    BookingPeriod mapToBookingPeriodEntity(BookingPeriodJpaEntity bookingPeriod);

    AccountAnalyticsJpaEntity mapToAccountAnalyticsJpaEntity(AccountAnalyticsEntity accountAnalyticsEntity);

    ContractJpaEntity mapToContractJpaEntity(ContractEntity contract);

    @Mapping(target = "id", ignore = true)
    @Mapping(target = "userId", ignore = true)
    @Mapping(target = "accountId", ignore = true)
    ContractJpaEntity mapToContractJpaEntity(Contract contract);

    @Mapping(target = "id", ignore = true)
    BookingGroupJpaEntity mapToBookingGroupJpaEntity(BookingGroup bookingGroup);

    @InheritInverseConfiguration
    @Mapping(target = "id", ignore = true)
    BookingPeriodJpaEntity mapToBookingPeriodJpaEntity(BookingPeriod bookingPeriod);

    @Mapping(target = "id", ignore = true)
    ExecutedBookingJpaEntity mapToExecutedBookingJpaEntity(ExecutedBooking executedBooking);

    List mapToAnonymizedBookingJpaEntities(List bookingEntities);

    BankAccessEntity mapToBankAccessEntity(BankAccessJpaEntity entity);

    List mapToTanTransportTypeList(List value);

    @Mapping(target = "needTanMedia", ignore = true)
    TanTransportType mapToTanTransportType(TanTransportTypeJpaEntity value);

    List mapToBankAccessEntities(List byUserId);

    BankAccessJpaEntity mapToBankAccessJpaEntity(BankAccessEntity bankAccess);

    List mapToTanTransportTypeJpaEntityList(List value);

    List mapToBankAccountEntities(List byUserId);

    BankAccountEntity mapToBankAccountEntity(BankAccountJpaEntity bankAccountJpaEntity);

    List mapToBankAccountJpaEntities(List bankAccounts);

    BankAccountJpaEntity mapToBankAccountJpaEntity(BankAccountEntity bankAccount);

    @Mapping(source = "loginSettings.authType", target = "loginSettings.auth_type")
    @Mapping(target = "searchIndex", ignore = true)
    BankEntity mapToBankEntity(BankJpaEntity bankJpaEntity);

    List mapToBankJpaEntities(Iterable bankEntities);

    @InheritInverseConfiguration
    BankJpaEntity mapToBankJpaEntity(BankEntity bank);

    @Mapping(target = "otherAccount.balances", ignore = true)
    @Mapping(target = "otherAccount.externalIdMap", ignore = true)
    BookingEntity mapToBookingEntity(BookingJpaEntity bookingJpaEntity);

    List mapToBookingEntities(List valutaDate);

    List mapToBookingJpaEntities(List newEntities);

    @Mapping(target = "id", ignore = true)
    @Mapping(target = "userId", ignore = true)
    @Mapping(target = "accountId", ignore = true)
    BookingCategoryJpaEntity mapToBookingCategoryJpaEntity(BookingCategory bookingCategory);

    List mapToRuleEntities(List byUserId);

    RuleEntity mapToRuleEntity(RuleJpaEntity ruleJpaEntity);

    RuleJpaEntity mapToRuleJpaEntity(RuleEntity ruleEntity);

    BookingsIndexJpaEntity mapToBookingsIndexJpaEntity(BookingsIndexEntity entity);

    BookingsIndexEntity mapToBookingsIndexEntity(BookingsIndexJpaEntity bookingsIndexJpaEntity);

    BulkPaymentJpaEntity mapToBulkPaymentJpaEntity(BulkPaymentEntity target);

    List mapToContractEntities(List byUserIdAndAccountId);

    List mapToContractJpaEntities(List contractEntities);

    MlAnonymizedBookingEntity mapToMlAnonymizedBookingEntity(MlAnonymizedBookingJpaEntity mlAnonymizedBookingJpaEntity);

    List mapToMlAnonymizedBookingEntities(List byUserId);

    MlAnonymizedBookingJpaEntity mapToMlAnonymizedBookingJpaEntity(MlAnonymizedBookingEntity booking);

    @Mapping(target = "psuAccount.balances", ignore = true)
    @Mapping(target = "psuAccount.externalIdMap", ignore = true)
    RawSepaTransactionEntity mapToRawSepaTransactionEntity(RawSepaTransactionJpaEntity rawSepaTransactionJpaEntity);

    @Mapping(target = "debtorBankAccount.id", ignore = true)
    @Mapping(target = "debtorBankAccount.bankAccessId", ignore = true)
    @Mapping(target = "debtorBankAccount.userId", ignore = true)
    RawSepaTransactionJpaEntity mapToRawSepaTransactionJpaEntity(RawSepaTransactionEntity paymentEntity);

    @Mapping(target = "psuAccount.balances", ignore = true)
    @Mapping(target = "psuAccount.externalIdMap", ignore = true)
    SinglePaymentEntity mapToPaymentEntity(SinglePaymentJpaEntity paymentJpaEntity);

    @Mapping(target = "debtorBankAccount.id", ignore = true)
    @Mapping(target = "debtorBankAccount.bankAccessId", ignore = true)
    @Mapping(target = "debtorBankAccount.userId", ignore = true)
    SinglePaymentJpaEntity mapToPaymentJpaEntity(SinglePaymentEntity paymentJpaEntity);

    @Mapping(target = "debtorBankAccount.id", ignore = true)
    @Mapping(target = "debtorBankAccount.bankAccessId", ignore = true)
    @Mapping(target = "debtorBankAccount.userId", ignore = true)
    StandingOrderJpaEntity mapToStandingOrderJpaEntity(StandingOrderEntity paymentJpaEntity);

    @Mapping(target = "psuAccount.balances", ignore = true)
    @Mapping(target = "psuAccount.externalIdMap", ignore = true)
    @Mapping(target = "otherAccount.balances", ignore = true)
    @Mapping(target = "otherAccount.externalIdMap", ignore = true)
    StandingOrderEntity mapToStandingOrderEntity(StandingOrderJpaEntity paymentJpaEntity);

    List mapToStandingOrderEntities(List byUserIdAndAccountId);

    List mapToStandingOrderJpaEntities(List standingOrders);

    UserEntity mapToUserEntity(UserJpaEntity userJpaEntity);

    UserJpaEntity mapToUserJpaEntity(UserEntity userEntity);

    List mapToBankEntities(List bankJpaEntities);

    List mapToBookingsIndexEntities(List bookingsIndexJpaEntities);

    ConsentEntity toConsentEntity(ConsentJpaEntity consentJpaEntity);

    ConsentJpaEntity toConsentJpaEntity(ConsentEntity consentEntity);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy