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

de.adorsys.multibanking.jpa.entity.BankAccountJpaEntity Maven / Gradle / Ivy

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

import de.adorsys.multibanking.domain.BankApi;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import java.util.EnumMap;
import java.util.Map;

@EqualsAndHashCode(callSuper = false)
@Entity(name = "bank_account")
@Data
public class BankAccountJpaEntity extends BankAccountCommonJpaEntity {

    @Id
    @GeneratedValue
    private Long id;
    private String bankAccessId;
    private String userId;

    @ElementCollection
    @CollectionTable(name = "bankaccount_external_id")
    @MapKeyEnumerated(EnumType.STRING)
    @MapKeyColumn(name = "bank_api")
    @Column(name = "external_id")
    private Map externalIdMap = new EnumMap<>(BankApi.class);
    @Embedded
    private BalancesReportEntity balances;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy