1
0
mirror of synced 2026-05-23 04:33:17 +00:00

Compare commits

...

22 Commits

Author SHA1 Message Date
Spring Buildmaster 0cbb7cd172 DATAES-174 - Release version 1.1.3.RELEASE (Evans SR3). 2015-06-30 15:49:25 -07:00
Oliver Gierke 3bb84212ae DATAES-174 - Prepare 1.1.3.RELEASE (Evans SR3). 2015-07-01 00:12:29 +02:00
Oliver Gierke 87c356b458 DATAES-174 - Updated changelog. 2015-07-01 00:12:21 +02:00
Oliver Gierke 3e888bd08d DATAES-175 - Updated changelog. 2015-06-30 14:22:26 +02:00
Oliver Gierke e5c7acf4f0 DATAES-168 - Updated changelog. 2015-06-30 14:22:18 +02:00
Oliver Gierke 49848c7402 DATAES-154 - Updated changelog. 2015-06-30 14:22:08 +02:00
Oliver Gierke 3f9fb01ace DATAES-152 - Updated changelog. 2015-03-06 08:18:43 +01:00
Artur Konczak 7ec291d572 DATAES-136 - BACKPORT from master- added support for basePackage configuration for @EnableElasticsearchRepositories -
(cherry picked from commit fad9a56)
2015-02-14 20:31:16 +00:00
Oliver Gierke 0aab5f940f DATAES-146 - After release cleanups. 2015-01-28 17:35:17 +01:00
Spring Buildmaster eedcd8685f DATAES-146 - Prepare next development iteration. 2015-01-28 03:47:57 -08:00
Spring Buildmaster 64d03e82fd DATAES-146 - Release 1.1.2.RELEASE (Evans SR2). 2015-01-28 03:47:55 -08:00
Oliver Gierke e07288e6e1 DATAES-146 - Prepare 1.1.2.RELEASE (Evans SR2). 2015-01-28 11:59:25 +01:00
Oliver Gierke 0d15936e7c DATAES-146 - Updated changelog. 2015-01-28 11:24:01 +01:00
Oliver Gierke 6f60464035 DATAES-145 - Updated changelog. 2015-01-28 10:10:09 +01:00
Oliver Gierke 584dba0b23 DATAES-134 - Updated changelog. 2015-01-20 07:57:54 +01:00
Oliver Gierke d41a925779 DATAES-133 - After release cleanups. 2014-10-31 21:34:46 +01:00
Spring Buildmaster 28e3a8c7fb DATAES-133 - Prepare next development iteration. 2014-10-30 04:52:07 -07:00
Spring Buildmaster d4fed726fa DATAES-133 - Release version 1.1.1.RELEASE (Evans SR1). 2014-10-30 04:52:05 -07:00
Oliver Gierke 45495603d9 DATAES-133 - Prepare 1.1.1.RELEASE (Evans SR1). 2014-10-30 11:57:48 +01:00
Oliver Gierke f5bee25fc6 DATAES-133 - Updated changelog. 2014-10-30 11:57:39 +01:00
Oliver Gierke 1af59690eb DATAES-128 - After release cleanups. 2014-09-05 14:00:04 +02:00
Spring Buildmaster 5e658a8069 DATAES-128 - Prepare next development iteration. 2014-09-05 13:59:58 +02:00
5 changed files with 121 additions and 7 deletions
+4 -4
View File
@@ -4,12 +4,12 @@
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-elasticsearch</artifactId>
<version>1.1.0.RELEASE</version>
<version>1.1.3.RELEASE</version>
<parent>
<groupId>org.springframework.data.build</groupId>
<artifactId>spring-data-parent</artifactId>
<version>1.5.0.RELEASE</version>
<version>1.5.3.RELEASE</version>
<relativePath>../spring-data-build/parent/pom.xml</relativePath>
</parent>
@@ -24,7 +24,7 @@
<commonscollections>3.2.1</commonscollections>
<commonslang>2.6</commonslang>
<elasticsearch>1.3.2</elasticsearch>
<springdata.commons>1.9.0.RELEASE</springdata.commons>
<springdata.commons>1.9.3.RELEASE</springdata.commons>
</properties>
@@ -151,7 +151,7 @@
<repositories>
<repository>
<id>spring-libs-release</id>
<url>http://repo.spring.io/libs-release</url>
<url>https://repo.spring.io/libs-release</url>
</repository>
</repositories>
@@ -15,8 +15,16 @@
*/
package org.springframework.data.elasticsearch.repository.config;
import java.lang.annotation.Annotation;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.core.annotation.AnnotationAttributes;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.repository.ElasticsearchCrudRepository;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactoryBean;
import org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource;
import org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport;
@@ -72,4 +80,22 @@ public class ElasticsearchRepositoryConfigExtension extends RepositoryConfigurat
Element element = config.getElement();
builder.addPropertyReference("elasticsearchOperations", element.getAttribute("elasticsearch-template-ref"));
}
/*
* (non-Javadoc)
* @see org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport#getIdentifyingAnnotations()
*/
@Override
protected Collection<Class<? extends Annotation>> getIdentifyingAnnotations() {
return Collections.<Class<? extends Annotation>>singleton(Document.class);
}
/*
* (non-Javadoc)
* @see org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport#getIdentifyingTypes()
*/
@Override
protected Collection<Class<?>> getIdentifyingTypes() {
return Arrays.<Class<?>>asList(ElasticsearchRepository.class, ElasticsearchCrudRepository.class);
}
}
+65
View File
@@ -1,6 +1,71 @@
Spring Data Elasticsearch Changelog
===================================
Changes in version 1.1.3.RELEASE (2015-07-01)
---------------------------------------------
* DATAES-174 - Release 1.1.3 (Evans).
Changes in version 1.2.1.RELEASE (2015-06-30)
---------------------------------------------
* DATAES-175 - Release 1.2.1 (Fowler).
* DATAES-164 - CriteriaQuery equals method has to use AND operator instead of OR.
* DATAES-155 - findAll(Iterable<ID> ids) doesn't set persistent entity id.
Changes in version 1.3.0.M1 (2015-06-02)
----------------------------------------
* DATAES-168 - Release 1.3 M1 (Gosling).
* DATAES-164 - CriteriaQuery equals method has to use AND operator instead of OR.
* DATAES-162 - Adapt API changes in Spring Data Commons to simplify custom repository base class registration.
* DATAES-159 - Bulk update with ElasticsearchTemplate.
* DATAES-158 - UpdateRequest.script not working.
* DATAES-157 - support deleteBy operation.
* DATAES-155 - findAll(Iterable<ID> ids) doesn't set persistent entity id.
Changes in version 1.2.0.RELEASE (2015-03-23)
---------------------------------------------
* DATAES-154 - Release 1.2 GA.
Changes in version 1.2.0.RC1 (2015-03-05)
-----------------------------------------
* DATAES-152 - Release 1.2 RC1.
* DATAES-151 - findAll(Iterable<ID> ids) uses id representation in source instead of ES id.
* DATAES-140 - Document fields should not be indexed for search.
* DATAES-135 - Add necessary implementation for improved multi-store behavior.
* DATAES-132 - support include_in_parent for nested fieldtype.
* DATAES-130 - Allow Spring EL usage in type attribute of @Document.
* DATAES-129 - Custom Repository Method for simple geo request does not work.
* DATAES-115 - FindBy projections for list returns only 10 results.
* DATAES-100 - Allow configurable searchTimeout.
* DATAES-94 - Bump to support ES 1.2.0.
* DATAES-91 - Support for 'suggest' operations.
Changes in version 1.1.2.RELEASE (2015-01-28)
---------------------------------------------
* DATAES-146 - Release 1.1.2.
Changes in version 1.0.5.RELEASE (2015-01-27)
---------------------------------------------
* DATAES-145 - Release 1.0.5.
Changes in version 1.2.0.M1 (2014-12-01)
----------------------------------------
* DATAES-134 - Release 1.2 M1.
* DATAES-94 - Support for Elasticsearch 1.2.0.
* DATAES-76 - Add support for mapping generation of inherited fields.
Changes in version 1.1.1.RELEASE (2014-10-30)
---------------------------------------------
* DATAES-133 - Release 1.1.1.
Changes in version 1.1.0.RELEASE (2014-09-05)
---------------------------------------------
* DATAES-128 - Release 1.1 GA.
+2 -2
View File
@@ -1,5 +1,5 @@
Spring Data Elasticsearch 1.1 GA
Copyright (c) [2013-2014] Pivotal Software, Inc.
Spring Data Elasticsearch 1.1.3
Copyright (c) [2013-2015] Pivotal Software, Inc.
This product is licensed to you under the Apache License, Version 2.0 (the "License").
You may not use this product except in compliance with the License.
@@ -21,12 +21,16 @@ import static org.junit.Assert.*;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.elasticsearch.core.ElasticsearchOperations;
import org.springframework.data.elasticsearch.core.ElasticsearchTemplate;
import org.springframework.data.elasticsearch.repositories.sample.SampleElasticsearchRepository;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@@ -37,7 +41,14 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration
public class EnableElasticsearchRepositoriesTests {
public class EnableElasticsearchRepositoriesTests implements ApplicationContextAware {
ApplicationContext context;
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
this.context = applicationContext;
}
@Configuration
@EnableElasticsearchRepositories(basePackages = "org.springframework.data.elasticsearch.repositories.sample")
@@ -56,4 +67,16 @@ public class EnableElasticsearchRepositoriesTests {
public void bootstrapsRepository() {
assertThat(repository, is(notNullValue()));
}
@Test
public void shouldScanSelectedPackage() {
//given
//when
String[] beanNamesForType = context.getBeanNamesForType(ElasticsearchRepository.class);
//then
assertThat(beanNamesForType.length, is(1));
assertThat(beanNamesForType[0], is("sampleElasticsearchRepository"));
}
}