@Test public void testCreateRepositoryFactory() { final DocumentDbRepositoryFactoryBean factoryBean = new DocumentDbRepositoryFactoryBean(PersonRepository.class, dbTemplate); final RepositoryFactorySupport factory = factoryBean.createRepositoryFactory(); assertThat(factory).isNotNull(); }
@Override protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) { DatasourceMapper datasourceMapper = new JpaDatasourceMapper(entityManager.getEntityManagerFactory()); SnowdropOperations operations = new SnowdropTemplate(datasourceMapper); SnowdropRepositoryFactory snowdropRepositoryFactory = new SnowdropRepositoryFactory(operations); postProcessors.forEach(p -> p.postProcess(snowdropRepositoryFactory)); return new JpaWithSnowdropRepositoryFactory(entityManager, snowdropRepositoryFactory); }
@Override protected RepositoryFactorySupport doCreateRepositoryFactory() { SolrRepositoryFactory factory = operations != null ? new SolrRepositoryFactory(this.operations) : new SolrRepositoryFactory(this.solrClient); factory.setSchemaCreationSupport(schemaCreationSupport); return factory; }
/** {@inheritDoc} */ @Override protected RepositoryFactorySupport createRepositoryFactory() { try { Ignite ignite = (Ignite)ctx.getBean("igniteInstance"); return new IgniteRepositoryFactory(ignite); } catch (BeansException ex) { try { IgniteConfiguration cfg = (IgniteConfiguration)ctx.getBean("igniteCfg"); return new IgniteRepositoryFactory(cfg); } catch (BeansException ex2) { try { String path = (String)ctx.getBean("igniteSpringCfgPath"); return new IgniteRepositoryFactory(path); } catch (BeansException ex3) { throw new IgniteException("Failed to initialize Ignite repository factory. Ignite instance or" + " IgniteConfiguration or a path to Ignite's spring XML configuration must be defined in the" + " application configuration"); } } } }
@Override protected RepositoryFactorySupport doCreateRepositoryFactory() { EntityManagerFactory emf; if(entityManagerFactoryRef==null){ emf = context.getBean(EntityManagerFactory.class); }else{ emf = context.getBean(entityManagerFactoryRef, EntityManagerFactory.class); } return new GqRepositoryFactory((JefEntityManagerFactory) emf); }
@Override protected RepositoryFactorySupport doCreateRepositoryFactory() { SolrRepositoryFactory factory = operations != null ? new SolrRepositoryFactory(this.operations) : new SolrRepositoryFactory(this.solrServer); factory.setSchemaCreationSupport(schemaCreationSupport); return factory; }
@Override protected RepositoryFactorySupport createRepositoryFactory() { if (dynamoDBOperations == null) { dynamoDBOperations = new DynamoDBTemplate(amazonDynamoDB,dynamoDBMapperConfig); } return new DynamoDBRepositoryFactory(dynamoDBOperations); }
@Override protected RepositoryFactorySupport doCreateRepositoryFactory() { return new JdbcRepositoryFactory(datasource); }
@Override protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) { return new DefaultRepositoryFactory(entityManager); }
@Override protected final RepositoryFactorySupport createRepositoryFactory() { return getFactoryInstance(applicationContext); }
protected RepositoryFactorySupport getFactoryInstance(ApplicationContext applicationContext) { return new DocumentDbRepositoryFactory(operations, applicationContext); }
@Override protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) { return new BaseRepositoryFactory(entityManager); }
@Override protected RepositoryFactorySupport createRepositoryFactory() { return new SpannerRepositoryFactory(operations); }
@Override protected RepositoryFactorySupport createRepositoryFactory() { return new SnowdropRepositoryFactory(snowdropOperations); }
@Override protected RepositoryFactorySupport createRepositoryFactory(EntityManager em) { return new BaseRepositoryFactory(em); }
@Override protected RepositoryFactorySupport createRepositoryFactory() { return new MongoRepositoryFactory(mappingContext, operations, config); }
@Override protected RepositoryFactorySupport createRepositoryFactory() { return new ObjectifyRepositoryFactory(objectify, searchService); }
@Override protected RepositoryFactorySupport createRepositoryFactory() { return new GcloudDatastoreRepositoryFactory(this.datastoreOptions); }
@Override protected RepositoryFactorySupport createRepositoryFactory(final EntityManager entityManager) { return new CustomJpaRepositoryFactory(entityManager, maxCostsQueryPlan); }
@Override protected RepositoryFactorySupport createRepositoryFactory() { return new JdbcTemplateRepositoryFactory(configuration); }
@Override protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) { return new RepositoryFactory(entityManager); }
@Override protected RepositoryFactorySupport createRepositoryFactory() { // return new ObjectifyRepositoryFactory(queryCreator, repositoryQueryType); return new ObjectifyRepositoryFactory(queryCreator, repositoryQueryType, mappingContext); }
@Override protected RepositoryFactorySupport createRepositoryFactory(final EntityManager entityManager) { return new RestRepositoryFactory(entityManager); }
@Override protected RepositoryFactorySupport doCreateRepositoryFactory() { return createRepositoryFactory(ebeanServer); }
@Override protected RepositoryFactorySupport doCreateRepositoryFactory() { return new MybatisRepositoryFactory(mappingContext, sqlSessionTemplate, dialect, auditorAware, auditDateAware); }
@Override protected RepositoryFactorySupport getFactoryInstance(MongoOperations operations) { return new CustomQueryDslMongodbRepositoryFactory<T, I>(operations); }
@Override protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) { RepositoryFactorySupport factorySupport = new GenericJpaRepositoryFactory(entityManager); factorySupport.setRepositoryBaseClass(GenericJpaRepositoryImpl.class); return factorySupport; }
@Override protected RepositoryFactorySupport getFactoryInstance(MongoOperations operations) { Assert.notNull(queryExecutor); return new AggregateQuerySupportingRepositoryFactory(operations, queryExecutor); }
@Override protected RepositoryFactorySupport doCreateRepositoryFactory() { return new ArangoDbRepositoryFactory(); }
@Override protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) { return new CustomRepository<>(entityManager); }
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) { return new Factory(entityManager); }
@Override protected RepositoryFactorySupport createRepositoryFactory() { return new Factory(operations); }
@Bean public RepositoryFactorySupport repositoryFactorySupport(){ LOGGER.info("In bean repositoryFactorySupport() entity manager is : {}", em.toString()); return new JpaRepositoryFactory(em); }
@Override protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) { return new CustomJpaRepositoryFactory<T, ID>(entityManager); }
protected RepositoryFactorySupport createRepositoryFactory(EntityManager em) { return new PlatformJpaRepositoryFactory(em); }
@Override protected RepositoryFactorySupport createRepositoryFactory( EntityManager entityManager) { return new DefaultRepositoryFactory(entityManager); }
@Override protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) { return new EntityGraphJpaRepositoryFactory(entityManager); }