@CompoundIndexes({ @CompoundIndex(name="tags_creationDate_idx", def = "{ 'tags' : 1, 'object.creationDate' : -1}") }) public class ImportRecord extends TaggedObjectRecord<ImportInfo> { // Important: constructor parameter must match field name from TaggedObjectRecord // in order to be properly mapped by spring data mongo public ImportRecord(ImportInfo object, Collection<? extends Tag> tags) { super(object, tags); } }
/** * Mongo Journal record. * * @author whury */ @CompoundIndexes({ @CompoundIndex(name="dirty_idx", def = "{ 'dirty' : 1, 'dirtyDate' : 1}") }) public class JournalRecord extends DirtyableEntityRecord<Journal> { public JournalRecord(Journal object, Collection<? extends Tag> tags) { super(object, tags); } }
/** * Mongo resolved citation record. * @author whury */ @CompoundIndexes({ @CompoundIndex(name="citation_key", def = "{ 'object.sourceArticle.articleId' : 1, 'object.citationIndex' : 1}", unique = true) }) public class ResolvedCitationRecord extends EntityRecord<ResolvedCitation> { public ResolvedCitationRecord(ResolvedCitation object, Collection<? extends Tag> tags) { super(object, tags); } }
/** * Created by alexg on 01.12.17. */ @Data @Document @CompoundIndexes({ @CompoundIndex(name = "creditor_unique_index", def = "{'creditorId': 1}", unique = true) }) public class AnonymizedBookingEntity { private String creditorId; private BigDecimal amount; private String purpose; }
/** * 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; }
/** * Created by alexg on 05.09.17. */ @Data @EqualsAndHashCode(callSuper = false) @Document @Encrypted(exclude = {"_id", "accountId", "userId"}) @CompoundIndexes({ @CompoundIndex(name = "account_index", def = "{'userId': 1, 'accountId': 1}") }) public class StandingOrderEntity extends StandingOrder { @Id private String id; private String accountId; private String userId; private Object tanSubmitExternal; }
/** * Created by alexg on 08.05.17. */ @Data @Document @Encrypted(exclude = {"_id", "accountId", "userId", "analyticsDate"}) @CompoundIndexes({ @CompoundIndex(name = "account_index", def = "{'userId': 1, 'accountId': 1}") }) public class AccountAnalyticsEntity { @Id private String id; private String accountId; private String userId; private LocalDateTime analyticsDate = LocalDateTime.now().now(); private List<BookingGroup> bookingGroups; }
@Encrypted(exclude = {"_id", "bankAccessId", "userId", "syncStatus", "rulesVersion"}) @JsonIgnoreProperties(value = {"externalIdMap"}, allowSetters = true) @CompoundIndexes({ @CompoundIndex(name = "account_index", def = "{'userId': 1, 'bankAccessId': 1}") })
/** * Created by alexg on 07.02.17. */ @Data @EqualsAndHashCode(callSuper = false) @Document @Encrypted(exclude = {"_id", "accountId", "userId", "analyticsDate"}) @CompoundIndexes({ @CompoundIndex(name = "account_index", def = "{'userId': 1, 'accountId': 1}") }) public class ContractEntity extends Contract { @Id private String id; private String userId; private String accountId; private BigDecimal amount; private String mainCategory; private String subCategory; private String specification; private String provider; }
@CompoundIndexes({ @CompoundIndex(name="tags_timestamp_idx", def = "{ 'tags' : 1, 'object.timestamp' : 1}"), @CompoundIndex(name="tags_timestamp_severity_idx", def = "{ 'tags' : 1, 'object.timestamp' : 1, 'severityLevel' : 1 }") }) public class EventRecord extends TaggedObjectRecord<Event> { // we need range queries on severity level and so // standard tag mechanism is not enough private final int severityLevel; public EventRecord(Event object, Collection<? extends Tag> tags) { super(object, tags); this.severityLevel = object.getCode().getSeverity().getSeverity(); } public int getSeverityLevel() { return severityLevel; } }
@CompoundIndexes({@CompoundIndex(name = "series", unique = true, def = "{'series':1}")}) public class MongoRememberMeToken extends AbstractRememberMeToken<ObjectId> {
/** * Created by alexg on 07.02.17. */ @Data @EqualsAndHashCode(callSuper = false) @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; }
@CompoundIndexes({@CompoundIndex(name = "created", def = "{'created': 1}"), @CompoundIndex(name = "lastUpdated", def = "{'lastUpdate': 1}")}) public abstract class AbstractMongoMultiPlayerGame<FEATURES> extends
@CompoundIndexes({@CompoundIndex(name = "created", def = "{'created': 1}"), @CompoundIndex(name = "lastUpdated", def = "{'lastUpdate': 1}")}) public abstract class AbstractMongoSinglePlayerGame<FEATURES> extends
/** * Date: 12/16/14 Time: 1:04 PM */ @Document(collection = "socialConnections") @CompoundIndexes({ @CompoundIndex(name = "sc_uidpidc", unique = true, def = "{'userId': 1, 'providerId': 1, 'created': 1}"), @CompoundIndex(name = "sc_pk", unique = true, def = "{'userId': 1, 'providerId': 1, 'providerUserId': 1}")}) public class MongoSocialConnection extends AbstractSocialConnection<ObjectId> { @Id private ObjectId id; public ObjectId getId() { return id; } public void setId(ObjectId id) { this.id = id; } }
@CompoundIndexes({ @CompoundIndex(name="dirty_idx", def = "{ 'dirty' : 1, 'dirtyDate' : 1}")
@Document @Encrypted(exclude = {"_id", "accountId", "userId"}) @CompoundIndexes({ @CompoundIndex(name = "account_index", def = "{'userId': 1, 'accountId': 1}") })
@CompoundIndexes({ @CompoundIndex(name = "unique_scm_key", def = "{'collectorItemId' : 1, 'scmRevisionNumber': 1}") })
@CompoundIndexes({@CompoundIndex(name = "created", def = "{'created': 1}"), @CompoundIndex(name = "lastLogin", def = "{'lastLogin': 1}"), @CompoundIndex(name = "displayName", def = "{'displayName': 1}"),
@Document @CompoundIndexes({ @CompoundIndex(name="attendanceRecord_user_timestamp_idx", def="{'userId': 1, 'timestamp': 1 }"), @CompoundIndex(name="attendanceRecord_user_id_idx", def="{'userId': 1, '_id': 1 }"),