de.adorsys.multibanking.mongo.entity.UserMongoEntity Maven / Gradle / Ivy
package de.adorsys.multibanking.mongo.entity;
import de.adorsys.multibanking.domain.BankApiUser;
import de.adorsys.multibanking.mongo.encrypt.Encrypted;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
@Data
@Document
@Encrypted(exclude = {"_id", "expireUser"})
public class UserMongoEntity {
@Id
private String id;
@Indexed
private LocalDateTime expireUser;
private LocalDateTime rulesLastChangeDate;
private List apiUser = new ArrayList<>();
public UserMongoEntity id(String id) {
this.id = id;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy