Package org.springframework.data.mongodb.repository.support

Examples of org.springframework.data.mongodb.repository.support.MongoRepositoryFactory


   */
  @Override
  protected T create(CreationalContext<T> creationalContext, Class<T> repositoryType, Object customImplementation) {

    MongoOperations mongoOperations = getDependencyInstance(operations, MongoOperations.class);
    MongoRepositoryFactory factory = new MongoRepositoryFactory(mongoOperations);

    return factory.getRepository(repositoryType, customImplementation);
  }
View Full Code Here


  @Before
  public void setUp() {

    template.indexOps(FullTextDocument.class).ensureIndex(
        new TextIndexDefinitionBuilder().onField("title").onField("content").build());
    this.repo = new MongoRepositoryFactory(this.template).getRepository(FullTextRepository.class);
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.mongodb.repository.support.MongoRepositoryFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.