de.adorsys.multibanking.mongo.entity.ContractMongoEntity Maven / Gradle / Ivy
package de.adorsys.multibanking.mongo.entity;
import de.adorsys.multibanking.domain.Contract;
import de.adorsys.multibanking.mongo.encrypt.Encrypted;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;
@Data
@EqualsAndHashCode(callSuper = false)
@Document
@Encrypted(exclude = {"_id", "accountId", "userId", "analyticsDate"})
@CompoundIndexes({
@CompoundIndex(name = "account_index", def = "{'userId': 1, 'accountId': 1}")
})
public class ContractMongoEntity extends Contract {
@Id
private String id;
private String userId;
private String accountId;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy