org.schoellerfamily.gedbrowser.persistence.mongo.domain.SourceDocumentMongo Maven / Gradle / Ivy
package org.schoellerfamily.gedbrowser.persistence.mongo.domain;
import org.schoellerfamily.gedbrowser.datamodel.GedObject;
import org.schoellerfamily.gedbrowser.datamodel.Source;
import org.schoellerfamily.gedbrowser.persistence.GedDocumentLoader;
import org.schoellerfamily.gedbrowser.persistence.PersistenceException;
import org.schoellerfamily.gedbrowser.persistence.domain.SourceDocument;
import org.schoellerfamily.gedbrowser.persistence.mongo.domain.visitor.GedDocumentMongoVisitor;
import org.schoellerfamily.gedbrowser.persistence.mongo.domain.visitor.TopLevelGedDocumentMongoVisitor;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;
/**
* @author Dick Schoeller
*/
@Document(collection = "sources")
@CompoundIndexes({
@CompoundIndex(name = "source_unique_idx",
def = "{'string': 1, 'filename': 1}",
unique = true)
})
public class SourceDocumentMongo extends GedDocumentMongo
© 2015 - 2025 Weber Informatics LLC | Privacy Policy