de.adorsys.multibanking.domain.BookingEntity Maven / Gradle / Ivy
package de.adorsys.multibanking.domain;
import de.adorsys.multibanking.encrypt.Encrypted;
import domain.Booking;
import lombok.Data;
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.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.Date;
/**
* Created by alexg on 07.02.17.
*/
@Data
@Document
@CompoundIndexes({
@CompoundIndex(name = "booking_index", def = "{'userId': 1, 'accountId': 1}"),
@CompoundIndex(name = "booking_unique_index", def = "{'externalId': 1, 'accountId': 1}", unique = true)
})
@Encrypted(exclude = {"_id", "accountId", "externalId", "userId", "valutaDate", "bookingDate", "bankApi"})
public class BookingEntity extends Booking {
@Id
private String id;
private String accountId;
private String userId;
public BookingEntity id(String id) {
this.id = id;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy