@Indexed(unique = true) private EmailAddress emailAddress; private Set<Address> addresses = new HashSet<Address>();
@Indexed @Field(EP_SPECIFIC_CONFIGURATION_KEY_HASH) private byte[] endpointKeyHash;
@Field(NF_BODY) private byte[] body; @Indexed(expireAfterSeconds = 0) @Field(NF_EXPIRED_AT) private Date expiredAt;
@Field(EP_ENDPOINT_KEY) private byte[] endpointKey; @Indexed @Field(EP_ENDPOINT_KEY_HASH) private byte[] endpointKeyHash; @Indexed @Field(EP_USER_ID) private String endpointUserId; @Indexed @Field(EP_ACCESS_TOKEN) private String accessToken; @Field(EP_SERVER_HASH) private String serverHash; @Indexed @Field(EP_SDK_TOKEN) private String sdkToken;
public abstract class TaggedRecord extends IdentifiableRecord { @Indexed private final Set<Tag> tags = Sets.newHashSet();
@Getter @Setter public class KeyStoreEntity { @Id private String id; @Indexed private String name; private String type; private byte[] keystore; private Map<String, KeyEntryAttributesEntity> entries; private Date lastUpdate; }
@Getter @Setter public class SecretEntity { @Id private String id; @Indexed private String subject; private String value; }
@Document(collection = "sys") @Setter @Getter public class SystemBean { @Id private String id; @Indexed(unique = true) private String name;//唯一不可重复 private List<String> schools;//学校列表 private Set<Authority> authorities;//shiro权限列 private List<TradeTag> tradeTags;//系统商品分类表 }
@Document(collection = "maturity_model") public class MaturityModel { @Indexed private String profile; private String rules; public String getProfile() { return profile; } public void setProfile(String profile) { this.profile = profile; } public String getRules() { return rules; } public void setRules(String rules) { this.rules = rules; } }
@Document(collection = "test") public class TestEntity { @Id private String id; @Indexed(unique = true) private String text; public TestEntity() { } public TestEntity(String id, String text) { this.id = id; this.text = text; } public String getId() { return id; } public String getText() { return text; } public void setText(String text) { this.text = text; } }
/** * Created by alexg on 05.09.17. */ @Data @EqualsAndHashCode(callSuper = false) @Document @Encrypted(exclude = {"_id", "userId"}) public class PaymentEntity extends SinglePayment { @Id private String id; private String userId; @Indexed(expireAfterSeconds = 300) private Date createdDateTime; private Object tanSubmitExternal; }
/** * Created by alexg on 05.09.17. */ @Data @EqualsAndHashCode(callSuper = false) @Document @Encrypted(exclude = {"_id", "userId"}) public class RawSepaTransactionEntity extends RawSepaPayment { @Id private String id; private String userId; @Indexed(expireAfterSeconds = 300) private Date createdDateTime; private Object tanSubmitExternal; }
/** * Created by alexg on 05.09.17. */ @Data @EqualsAndHashCode(callSuper = false) @Document @Encrypted(exclude = {"_id", "userId"}) public class BulkPaymentEntity extends BulkPayment { @Id private String id; private String userId; @Indexed(expireAfterSeconds = 300) private Date createdDateTime; private Object tanSubmitExternal; }
/** * Created by alexg on 07.02.17. */ @Data @Document @Encrypted(exclude = {"_id", "expireUser"}) public class UserEntity { @Id private String id; @Indexed private LocalDateTime expireUser; private LocalDateTime rulesLastChangeDate; private List<BankApiUser> apiUser = new ArrayList<>(); public UserEntity id(String id) { this.id = id; return this; } }
/** * Created by alexg on 08.05.17. */ @Data @EqualsAndHashCode(callSuper = false) @Document @CompoundIndexes({ @CompoundIndex(name = "bank_index", def = "{'bankCode': 1}") }) public class BankEntity extends Bank { @Id private String id; private String blzHbci; @Indexed private List<String> searchIndex; }