1
0
mirror of synced 2026-07-06 18:20:01 +00:00

Compare commits

...

118 Commits

Author SHA1 Message Date
Mark Paluch d48b1e51a6 DATAES-474 - Release version 2.1.15 (Ingalls SR15). 2018-09-10 09:30:36 +02:00
Mark Paluch 7b8d6bfd89 DATAES-474 - Prepare 2.1.15 (Ingalls SR15). 2018-09-10 09:29:52 +02:00
Mark Paluch 24ebd61d42 DATAES-474 - Updated changelog. 2018-09-10 09:29:50 +02:00
Oliver Gierke 635cdaa01f DATAES-472 - Updated changelog. 2018-08-20 11:07:58 +02:00
Mark Paluch 6b56d805cf DATAES-463 - After release cleanups. 2018-07-27 11:09:42 +02:00
Mark Paluch d9ef96b683 DATAES-463 - Prepare next development iteration. 2018-07-27 11:09:40 +02:00
Mark Paluch 5ccb1059c1 DATAES-463 - Release version 2.1.14 (Ingalls SR14). 2018-07-27 09:21:39 +02:00
Mark Paluch 762a9bb99f DATAES-463 - Prepare 2.1.14 (Ingalls SR14). 2018-07-27 09:20:28 +02:00
Mark Paluch 827aea4386 DATAES-463 - Updated changelog. 2018-07-27 09:20:27 +02:00
Mark Paluch f568c2e7d5 DATAES-465 - Updated changelog. 2018-07-26 16:23:59 +02:00
Mark Paluch b35080bdb0 DATAES-452 - Updated changelog. 2018-07-26 14:03:20 +02:00
Mark Paluch e2c3a3f7aa DATAES-448 - Updated changelog. 2018-06-13 21:39:55 +02:00
Mark Paluch a546498385 DATAES-447 - After release cleanups. 2018-06-13 14:42:35 +02:00
Mark Paluch 23f20f7b1f DATAES-447 - Prepare next development iteration. 2018-06-13 14:42:34 +02:00
Mark Paluch 1970d98232 DATAES-447 - Release version 2.1.13 (Ingalls SR13). 2018-06-13 10:48:53 +02:00
Mark Paluch 3e02b17a7a DATAES-447 - Prepare 2.1.13 (Ingalls SR13). 2018-06-13 10:48:03 +02:00
Mark Paluch a5b8dd71fd DATAES-447 - Updated changelog. 2018-06-13 10:48:02 +02:00
Christoph Strobl 31c1d0ea30 DATAES-440 - Updated changelog. 2018-05-17 10:32:57 +02:00
Mark Paluch 275402149a DATAES-437 - Updated changelog. 2018-05-08 15:27:22 +02:00
Mark Paluch f82673c762 DATAES-436 - After release cleanups. 2018-05-08 11:56:08 +02:00
Mark Paluch b4548d9272 DATAES-436 - Prepare next development iteration. 2018-05-08 11:56:07 +02:00
Mark Paluch b07d8b0a49 DATAES-436 - Release version 2.1.12 (Ingalls SR12). 2018-05-08 10:50:35 +02:00
Mark Paluch 1c0fff63d6 DATAES-436 - Prepare 2.1.12 (Ingalls SR12). 2018-05-08 10:49:48 +02:00
Mark Paluch feb59fa538 DATAES-436 - Updated changelog. 2018-05-08 10:49:46 +02:00
Mark Paluch 74164089cd DATAES-427 - Updated changelog. 2018-04-13 15:11:30 +02:00
Mark Paluch 81690cd449 DATAES-430 - Updated changelog. 2018-04-04 17:12:55 +02:00
Mark Paluch 4f55f7cc0c DATAES-423 - After release cleanups. 2018-04-04 14:58:04 +02:00
Mark Paluch c3ba55d825 DATAES-423 - Prepare next development iteration. 2018-04-04 14:58:03 +02:00
Mark Paluch 53e87ec787 DATAES-423 - Release version 2.1.11 (Ingalls SR11). 2018-04-04 14:21:29 +02:00
Mark Paluch a6bc04c679 DATAES-423 - Prepare 2.1.11 (Ingalls SR11). 2018-04-04 14:20:47 +02:00
Mark Paluch 2e36e85bd7 DATAES-423 - Updated changelog. 2018-04-04 14:20:45 +02:00
Oliver Gierke b7279d57e9 DATAES-434 - Removed explicit declaration of Jackson library versions. 2018-03-27 19:37:51 +02:00
Mark Paluch aaa17b55d6 DATAES-429 - Updated changelog. 2018-02-28 11:17:41 +01:00
Mark Paluch ef8767535c DATAES-425 - Updated changelog. 2018-02-19 20:30:09 +01:00
Christoph Strobl 26ecb5c1dc DATAES-401 - Updated changelog. 2018-02-06 11:14:00 +01:00
Mark Paluch 0b974456e2 DATAES-417 - Updated changelog. 2018-01-24 13:41:25 +01:00
Mark Paluch 63a16453fc DATAES-424 - Fix line endings to LF. 2018-01-24 13:08:50 +01:00
Mark Paluch 7d8a78d728 DATAES-416 - After release cleanups. 2018-01-24 12:18:54 +01:00
Mark Paluch 230d616fe3 DATAES-416 - Prepare next development iteration. 2018-01-24 12:18:54 +01:00
Mark Paluch e22b1b2c82 DATAES-416 - Release version 2.1.10 (Ingalls SR10). 2018-01-24 12:18:54 +01:00
Mark Paluch 8906ce0385 DATAES-416 - Prepare 2.1.10 (Ingalls SR10). 2018-01-24 12:18:53 +01:00
Mark Paluch 41dda8337a DATAES-416 - Updated changelog. 2018-01-24 12:18:38 +01:00
Mark Paluch 481e4e35b6 DATAES-411 - Updated changelog. 2017-11-27 16:43:45 +01:00
Mark Paluch da924ba62c DATAES-404 - After release cleanups. 2017-11-27 15:56:40 +01:00
Mark Paluch 462f1dd85a DATAES-404 - Prepare next development iteration. 2017-11-27 15:56:38 +01:00
Mark Paluch 1ddea11287 DATAES-404 - Release version 2.1.9 (Ingalls SR9). 2017-11-27 15:17:06 +01:00
Mark Paluch c352a1d3af DATAES-404 - Prepare 2.1.9 (Ingalls SR9). 2017-11-27 15:16:09 +01:00
Mark Paluch 93893c3393 DATAES-404 - Updated changelog. 2017-11-27 15:16:07 +01:00
Oliver Gierke d3777b2161 DATAES-400 - Updated changelog. 2017-10-27 16:36:54 +02:00
Oliver Gierke d7b94e53a5 DATAES-408 - Ensure Spring Framework 5 compatibility.
Polished use of TypeInformation in MappingBuilder to remove reference to GenericCollectionTypeResolver which was removed in Spring Framework 5.
2017-10-16 19:40:44 +02:00
Oliver Gierke 4daadf0d98 DATAES-391 - After release cleanups. 2017-10-11 19:00:16 +02:00
Oliver Gierke 988828cbbd DATAES-391 - Prepare next development iteration. 2017-10-11 19:00:13 +02:00
Oliver Gierke a49efc99b6 DATAES-391 - Release version 2.1.8 (Ingalls SR8). 2017-10-11 16:42:43 +02:00
Oliver Gierke ff2aa58de3 DATAES-391 - Prepare 2.1.8 (Ingalls SR8). 2017-10-11 16:41:10 +02:00
Oliver Gierke 3e0a36227e DATAES-391 - Updated changelog. 2017-10-11 16:41:05 +02:00
Mark Paluch 5863335114 DATAES-392 - Updated changelog. 2017-10-02 11:41:37 +02:00
Oliver Gierke e3d0cd1102 DATAES-376 - Updated changelog. 2017-09-11 17:42:48 +02:00
Mark Paluch 9eeba8f517 DATAES-378 - After release cleanups. 2017-09-11 12:23:36 +02:00
Mark Paluch 7cba3b9d60 DATAES-378 - Prepare next development iteration. 2017-09-11 12:23:35 +02:00
Mark Paluch a2ab0e413d DATAES-378 - Release version 2.1.7 (Ingalls SR7). 2017-09-11 11:45:05 +02:00
Mark Paluch 44c6b5d38e DATAES-378 - Prepare 2.1.7 (Ingalls SR7). 2017-09-11 11:44:21 +02:00
Mark Paluch 727fec4712 DATAES-378 - Updated changelog. 2017-09-11 11:44:19 +02:00
Oliver Gierke 7e6b2dba14 DATAES-374 - After release cleanups. 2017-07-27 00:21:41 +02:00
Oliver Gierke 38475e6eac DATAES-374 - Prepare next development iteration. 2017-07-27 00:15:09 +02:00
Oliver Gierke 3626be42fd DATAES-374 - Release version 2.1.6 (Ingalls SR6). 2017-07-26 23:47:21 +02:00
Oliver Gierke 4e97dd39e5 DATAES-374 - Prepare 2.1.6 (Ingalls SR6). 2017-07-26 23:45:53 +02:00
Oliver Gierke 879c90f5ce DATAES-374 - Updated changelog. 2017-07-26 23:45:48 +02:00
Oliver Gierke ccf055c087 DATAES-375 - Updated changelog. 2017-07-25 16:15:50 +02:00
Oliver Gierke 15f6de1e63 DATAES-359 - Updated changelog. 2017-07-25 10:04:04 +02:00
Oliver Gierke 0c9354bb50 DATAES-358 - After release cleanups. 2017-07-24 19:25:08 +02:00
Oliver Gierke a48c4838eb DATAES-358 - Prepare next development iteration. 2017-07-24 19:25:06 +02:00
Oliver Gierke 354eba3bc1 DATAES-358 - Release version 2.1.5 (Ingalls SR5). 2017-07-24 18:44:19 +02:00
Oliver Gierke 1a86e12fc7 DATAES-358 - Prepare 2.1.5 (Ingalls SR5). 2017-07-24 18:43:24 +02:00
Oliver Gierke 9c14e0b9b7 DATAES-358 - Updated changelog. 2017-07-24 18:43:20 +02:00
Mark Paluch 933fbcb975 DATAES-353 - Updated changelog. 2017-06-14 17:34:59 +02:00
Mark Paluch 7660cef804 DATAES-349 - After release cleanups. 2017-06-08 11:26:20 +02:00
Mark Paluch 160ae17ce8 DATAES-349 - Prepare next development iteration. 2017-06-08 11:26:19 +02:00
Mark Paluch 424c4c64e3 DATAES-349 - Release version 2.1.4 (Ingalls SR4). 2017-06-08 10:56:52 +02:00
Mark Paluch df93e2aa88 DATAES-349 - Prepare 2.1.4 (Ingalls SR4). 2017-06-08 10:56:03 +02:00
Mark Paluch 29a52c4f36 DATAES-349 - Updated changelog. 2017-06-08 10:56:02 +02:00
Mark Paluch 74b2d46029 DATAES-348 - Updated changelog. 2017-06-07 12:23:38 +02:00
Mark Paluch 8af517e611 DATAES-344 - Updated changelog. 2017-05-09 11:36:17 +02:00
Oliver Gierke 05bace213b DATAES-347 - Updated changelog. 2017-04-19 21:04:27 +02:00
Oliver Gierke 2a70ee11ba DATAES-346 - After release cleanups. 2017-04-19 20:01:15 +02:00
Oliver Gierke 0591435f99 DATAES-346 - Prepare next development iteration. 2017-04-19 20:01:13 +02:00
Oliver Gierke 072fb3465a DATAES-346 - Release version 2.1.3 (Ingalls SR3). 2017-04-19 19:32:39 +02:00
Oliver Gierke a6dc02aa51 DATAES-346 - Prepare 2.1.3 (Ingalls SR3). 2017-04-19 19:32:02 +02:00
Oliver Gierke 5a3a49cc3e DATAES-346 - Updated changelog. 2017-04-19 19:31:58 +02:00
Oliver Gierke f1559d3b55 DATAES-336 - Updated changelog. 2017-04-19 13:04:14 +02:00
Oliver Gierke 9a9d95ba15 DATAES-335 - After release cleanups. 2017-04-19 11:48:46 +02:00
Oliver Gierke b873c5409c DATAES-335 - Prepare next development iteration. 2017-04-19 11:48:44 +02:00
Oliver Gierke 6aa4adc977 DATAES-335 - Release version 2.1.2 (Ingalls SR2). 2017-04-19 10:11:29 +02:00
Oliver Gierke 2c7d8c6f61 DATAES-335 - Prepare 2.1.2 (Ingalls SR2). 2017-04-19 10:10:48 +02:00
Oliver Gierke 05c9804d16 DATAES-335 - Updated changelog. 2017-04-19 10:10:44 +02:00
Oliver Gierke c72eaa79e9 DATAES-311 - Updated changelog. 2017-04-10 14:33:12 +02:00
Oliver Gierke 399611d68a DATAES-326 - Updated changelog. 2017-03-02 16:57:55 +01:00
Oliver Gierke f79caa9626 DATAES-327 - After release cleanups. 2017-03-02 10:21:57 +01:00
Oliver Gierke b8ff15e69c DATAES-327 - Prepare next development iteration. 2017-03-02 10:21:40 +01:00
Oliver Gierke c28f41a2c4 DATAES-327 - Release version 2.1.1 (Ingalls SR1). 2017-03-02 09:41:29 +01:00
Oliver Gierke 686921c46e DATAES-327 - Prepare 2.1.1 (Ingalls SR1). 2017-03-02 09:33:29 +01:00
Oliver Gierke d1e11ef5f9 DATAES-327 - Updated changelog. 2017-03-02 09:33:11 +01:00
Mark Paluch c0ef590038 DATAES-329 - Remove references to Assert single-arg methods.
Replace references to Assert single-arg methods with references to methods accepting the test object and message.

Related ticket: SPR-15196.
2017-02-02 08:42:56 +01:00
Oliver Gierke 692142ea65 DATAES-319 - Updated changelog. 2017-01-26 12:08:53 +01:00
Oliver Gierke 6e2331b040 DATAES-320 - After release cleanups. 2017-01-26 10:57:48 +01:00
Oliver Gierke 29910fc9ef DATAES-320 - Prepare next development iteration. 2017-01-26 10:57:45 +01:00
Oliver Gierke 38604eb64d DATAES-320 - Release version 2.1 GA (Ingalls). 2017-01-26 10:27:11 +01:00
Oliver Gierke 344f439778 DATAES-320 - Prepare 2.1 GA (Ingalls). 2017-01-26 10:26:36 +01:00
Oliver Gierke ea07d697ad DATAES-320 - Updated changelog. 2017-01-26 10:26:34 +01:00
Mark Paluch 6b549339c8 DATAES-322 - Update project documentation with the CLA tool integration. 2017-01-13 11:32:01 +01:00
Oliver Gierke 3c2894e45d DATAES-304 - Updated changelog. 2016-12-21 19:35:39 +01:00
Oliver Gierke d921f9d9a3 DATAES-275 - After release cleanups. 2016-12-21 16:33:14 +01:00
Oliver Gierke af1f658712 DATAES-275 - Prepare next development iteration. 2016-12-21 16:33:11 +01:00
Oliver Gierke 18c30078ba DATAES-275 - Release version 2.1 RC1 (Ingalls). 2016-12-21 16:16:52 +01:00
Oliver Gierke 812e202f15 DATAES-275 - Prepare 2.1 RC1 (Ingalls). 2016-12-21 16:15:48 +01:00
Oliver Gierke bf4cadbdd8 DATAES-275 - Updated changelog. 2016-12-21 16:15:44 +01:00
Oliver Gierke 200f1771d5 DATAES-315 - Adapt API in ElasticsearchRepositoryFactoryBean.
Related ticket: DATACMNS-891.
2016-12-15 15:25:17 +01:00
Mark Paluch b83a097892 DATAES-313 - Register ElasticsearchRepositoryFactory in spring.factories.
This is required for the switch in support for multi-store detection.

Related ticket: DATACMNS-952.
2016-12-06 09:12:53 +01:00
Oliver Gierke 6d08e92117 DATAES-306 - Updated changelog. 2016-11-23 13:52:48 +01:00
100 changed files with 13662 additions and 13338 deletions
+4 -1
View File
@@ -1,9 +1,12 @@
<!--
Thank you for proposing a pull request. This template will guide you through the essential steps necessary for a pull request. Thank you for proposing a pull request. This template will guide you through the essential steps necessary for a pull request.
Make sure that: Make sure that:
-->
- [ ] You have read the [Spring Data contribution guidelines](https://github.com/spring-projects/spring-data-build/blob/master/CONTRIBUTING.adoc). - [ ] You have read the [Spring Data contribution guidelines](https://github.com/spring-projects/spring-data-build/blob/master/CONTRIBUTING.adoc).
- [ ] There is a ticket in the bug tracker for the project in our [JIRA](https://jira.spring.io/browse/DATAES). - [ ] There is a ticket in the bug tracker for the project in our [JIRA](https://jira.spring.io/browse/DATAES).
- [ ] You use the code formatters provided [here](https://github.com/spring-projects/spring-data-build/tree/master/etc/ide) and have them applied to your changes. Dont submit any formatting related changes. - [ ] You use the code formatters provided [here](https://github.com/spring-projects/spring-data-build/tree/master/etc/ide) and have them applied to your changes. Dont submit any formatting related changes.
- [ ] You submit test cases (unit or integration tests) that back your changes. - [ ] You submit test cases (unit or integration tests) that back your changes.
- [ ] You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only). - [ ] You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).
- [ ] You provide your full name and an email address registered with your GitHub account. If youre a first-time submitter, make sure you have completed the [Contributors License Agreement form](https://support.springsource.com/spring_committer_signup).
+1 -1
View File
@@ -245,7 +245,7 @@ Here are some ways for you to get involved in the community:
* Github is for social coding: if you want to write code, we encourage contributions through pull requests from [forks of this repository](http://help.github.com/forking/). If you want to contribute code this way, please reference a JIRA ticket as well covering the specific issue you are addressing. * Github is for social coding: if you want to write code, we encourage contributions through pull requests from [forks of this repository](http://help.github.com/forking/). If you want to contribute code this way, please reference a JIRA ticket as well covering the specific issue you are addressing.
* Watch for upcoming articles on Spring by [subscribing](http://www.springsource.org/node/feed) to springframework.org * Watch for upcoming articles on Spring by [subscribing](http://www.springsource.org/node/feed) to springframework.org
Before we accept a non-trivial patch or pull request we will need you to sign the [contributor's agreement](https://support.springsource.com/spring_committer_signup). Signing the contributor's agreement does not grant anyone commit rights to the main repository, but it does mean that we can accept your contributions, and you will get an author credit if we do. Active contributors might be asked to join the core team, and given the ability to merge pull requests. Before we accept a non-trivial patch or pull request we will need you to [sign the Contributor License Agreement](https://cla.pivotal.io/sign/spring). Signing the contributors agreement does not grant anyone commit rights to the main repository, but it does mean that we can accept your contributions, and you will get an author credit if we do. If you forget to do so, you'll be reminded when you submit a pull request. Active contributors might be asked to join the core team, and given the ability to merge pull requests.
Code formatting for [Eclipse and Intellij](https://github.com/spring-projects/spring-data-build/tree/master/etc/ide) Code formatting for [Eclipse and Intellij](https://github.com/spring-projects/spring-data-build/tree/master/etc/ide)
+5 -7
View File
@@ -4,12 +4,12 @@
<groupId>org.springframework.data</groupId> <groupId>org.springframework.data</groupId>
<artifactId>spring-data-elasticsearch</artifactId> <artifactId>spring-data-elasticsearch</artifactId>
<version>2.1.0.BUILD-SNAPSHOT</version> <version>2.1.15.RELEASE</version>
<parent> <parent>
<groupId>org.springframework.data.build</groupId> <groupId>org.springframework.data.build</groupId>
<artifactId>spring-data-parent</artifactId> <artifactId>spring-data-parent</artifactId>
<version>1.9.0.BUILD-SNAPSHOT</version> <version>1.9.15.RELEASE</version>
<relativePath>../spring-data-build/parent/pom.xml</relativePath> <relativePath>../spring-data-build/parent/pom.xml</relativePath>
</parent> </parent>
@@ -24,7 +24,7 @@
<commonscollections>3.2.1</commonscollections> <commonscollections>3.2.1</commonscollections>
<commonslang>2.6</commonslang> <commonslang>2.6</commonslang>
<elasticsearch>2.4.0</elasticsearch> <elasticsearch>2.4.0</elasticsearch>
<springdata.commons>1.13.0.BUILD-SNAPSHOT</springdata.commons> <springdata.commons>1.13.15.RELEASE</springdata.commons>
</properties> </properties>
@@ -79,12 +79,10 @@
<dependency> <dependency>
<groupId>com.fasterxml.jackson.core</groupId> <groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId> <artifactId>jackson-core</artifactId>
<version>${jackson}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.core</groupId> <groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId> <artifactId>jackson-databind</artifactId>
<version>${jackson}</version>
</dependency> </dependency>
<!-- CDI --> <!-- CDI -->
@@ -176,8 +174,8 @@
<repositories> <repositories>
<repository> <repository>
<id>spring-libs-snapshot</id> <id>spring-libs-release</id>
<url>https://repo.spring.io/libs-snapshot</url> <url>https://repo.spring.io/libs-release</url>
</repository> </repository>
</repositories> </repositories>
@@ -28,7 +28,6 @@ import java.util.Map;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.math.NumberUtils; import org.apache.commons.lang.math.NumberUtils;
import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentBuilder;
import org.springframework.core.GenericCollectionTypeResolver;
import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.ClassPathResource;
import org.springframework.data.annotation.Transient; import org.springframework.data.annotation.Transient;
import org.springframework.data.elasticsearch.annotations.*; import org.springframework.data.elasticsearch.annotations.*;
@@ -47,6 +46,7 @@ import org.springframework.data.util.TypeInformation;
* @author Alexander Volz * @author Alexander Volz
* @author Dennis Maaß * @author Dennis Maaß
* @author Pavel Luhin * @author Pavel Luhin
* @author Oliver Gierke
*/ */
class MappingBuilder { class MappingBuilder {
@@ -308,19 +308,19 @@ class MappingBuilder {
} }
protected static boolean isEntity(java.lang.reflect.Field field) { protected static boolean isEntity(java.lang.reflect.Field field) {
TypeInformation typeInformation = ClassTypeInformation.from(field.getType());
TypeInformation<?> typeInformation = ClassTypeInformation.from(field.getType());
Class<?> clazz = getFieldType(field); Class<?> clazz = getFieldType(field);
boolean isComplexType = !SIMPLE_TYPE_HOLDER.isSimpleType(clazz); boolean isComplexType = !SIMPLE_TYPE_HOLDER.isSimpleType(clazz);
return isComplexType && !Map.class.isAssignableFrom(typeInformation.getType()); return isComplexType && !typeInformation.isMap();
} }
protected static Class<?> getFieldType(java.lang.reflect.Field field) { protected static Class<?> getFieldType(java.lang.reflect.Field field) {
Class<?> clazz = field.getType();
TypeInformation typeInformation = ClassTypeInformation.from(clazz); return ClassTypeInformation.from(field.getDeclaringClass()) //
if (typeInformation.isCollectionLike()) { .getProperty(field.getName()) //
clazz = GenericCollectionTypeResolver.getCollectionFieldType(field) != null ? GenericCollectionTypeResolver.getCollectionFieldType(field) : typeInformation.getComponentType().getType(); .getActualType() //
} .getType();
return clazz;
} }
private static boolean isAnyPropertyAnnotatedAsField(java.lang.reflect.Field[] fields) { private static boolean isAnyPropertyAnnotatedAsField(java.lang.reflect.Field[] fields) {
@@ -1,5 +1,5 @@
/* /*
* Copyright 2013 the original author or authors. * Copyright 2013-2017 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -31,8 +31,8 @@ import org.springframework.util.Assert;
* *
* @author Rizwan Idrees * @author Rizwan Idrees
* @author Mohsin Husen * @author Mohsin Husen
* @author Mark Paluch
*/ */
public class MappingElasticsearchConverter implements ElasticsearchConverter, ApplicationContextAware { public class MappingElasticsearchConverter implements ElasticsearchConverter, ApplicationContextAware {
private final MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> mappingContext; private final MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> mappingContext;
@@ -43,7 +43,9 @@ public class MappingElasticsearchConverter implements ElasticsearchConverter, Ap
public MappingElasticsearchConverter( public MappingElasticsearchConverter(
MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> mappingContext) { MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> mappingContext) {
Assert.notNull(mappingContext);
Assert.notNull(mappingContext, "MappingContext must not be null!");
this.mappingContext = mappingContext; this.mappingContext = mappingContext;
this.conversionService = new DefaultConversionService(); this.conversionService = new DefaultConversionService();
} }
@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2016 the original author or authors. * Copyright 2013-2017 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -29,6 +29,7 @@ import org.springframework.util.Assert;
* *
* @author Rizwan Idrees * @author Rizwan Idrees
* @author Mohsin Husen * @author Mohsin Husen
* @author Mark Paluch
*/ */
abstract class AbstractQuery implements Query { abstract class AbstractQuery implements Query {
@@ -55,7 +56,9 @@ abstract class AbstractQuery implements Query {
@Override @Override
public final <T extends Query> T setPageable(Pageable pageable) { public final <T extends Query> T setPageable(Pageable pageable) {
Assert.notNull(pageable);
Assert.notNull(pageable, "Pageable must not be null!");
this.pageable = pageable; this.pageable = pageable;
return (T) this.addSort(pageable.getSort()); return (T) this.addSort(pageable.getSort());
} }
@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2016 the original author or authors. * Copyright 2013-2017 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -43,6 +43,7 @@ import org.springframework.util.Assert;
* @author Mohsin Husen * @author Mohsin Husen
* @author Ryan Henszey * @author Ryan Henszey
* @author Kevin Leturc * @author Kevin Leturc
* @author Mark Paluch
*/ */
public abstract class AbstractElasticsearchRepository<T, ID extends Serializable> implements public abstract class AbstractElasticsearchRepository<T, ID extends Serializable> implements
ElasticsearchRepository<T, ID> { ElasticsearchRepository<T, ID> {
@@ -56,14 +57,18 @@ public abstract class AbstractElasticsearchRepository<T, ID extends Serializable
} }
public AbstractElasticsearchRepository(ElasticsearchOperations elasticsearchOperations) { public AbstractElasticsearchRepository(ElasticsearchOperations elasticsearchOperations) {
Assert.notNull(elasticsearchOperations);
Assert.notNull(elasticsearchOperations, "ElasticsearchOperations must not be null!");
this.setElasticsearchOperations(elasticsearchOperations); this.setElasticsearchOperations(elasticsearchOperations);
} }
public AbstractElasticsearchRepository(ElasticsearchEntityInformation<T, ID> metadata, public AbstractElasticsearchRepository(ElasticsearchEntityInformation<T, ID> metadata,
ElasticsearchOperations elasticsearchOperations) { ElasticsearchOperations elasticsearchOperations) {
this(elasticsearchOperations); this(elasticsearchOperations);
Assert.notNull(metadata);
Assert.notNull(metadata, "ElasticsearchEntityInformation must not be null!");
this.entityInformation = metadata; this.entityInformation = metadata;
setEntityClass(this.entityInformation.getJavaType()); setEntityClass(this.entityInformation.getJavaType());
try { try {
@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2014 the original author or authors. * Copyright 2013-2017 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -28,6 +28,7 @@ import org.springframework.util.Assert;
* @author Rizwan Idrees * @author Rizwan Idrees
* @author Mohsin Husen * @author Mohsin Husen
* @author Oliver Gierke * @author Oliver Gierke
* @author Mark Paluch
*/ */
public class ElasticsearchEntityInformationCreatorImpl implements ElasticsearchEntityInformationCreator { public class ElasticsearchEntityInformationCreatorImpl implements ElasticsearchEntityInformationCreator {
@@ -35,7 +36,9 @@ public class ElasticsearchEntityInformationCreatorImpl implements ElasticsearchE
public ElasticsearchEntityInformationCreatorImpl( public ElasticsearchEntityInformationCreatorImpl(
MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> mappingContext) { MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> mappingContext) {
Assert.notNull(mappingContext);
Assert.notNull(mappingContext, "MappingContext must not be null!");
this.mappingContext = mappingContext; this.mappingContext = mappingContext;
} }
@@ -1,5 +1,5 @@
/* /*
* Copyright 2013 the original author or authors. * Copyright 2013-2017 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -43,6 +43,7 @@ import org.springframework.util.Assert;
* @author Mohsin Husen * @author Mohsin Husen
* @author Ryan Henszey * @author Ryan Henszey
* @author Gad Akuka * @author Gad Akuka
* @author Mark Paluch
*/ */
public class ElasticsearchRepositoryFactory extends RepositoryFactorySupport { public class ElasticsearchRepositoryFactory extends RepositoryFactorySupport {
@@ -50,7 +51,9 @@ public class ElasticsearchRepositoryFactory extends RepositoryFactorySupport {
private final ElasticsearchEntityInformationCreator entityInformationCreator; private final ElasticsearchEntityInformationCreator entityInformationCreator;
public ElasticsearchRepositoryFactory(ElasticsearchOperations elasticsearchOperations) { public ElasticsearchRepositoryFactory(ElasticsearchOperations elasticsearchOperations) {
Assert.notNull(elasticsearchOperations);
Assert.notNull(elasticsearchOperations, "ElasticsearchOperations must not be null!");
this.elasticsearchOperations = elasticsearchOperations; this.elasticsearchOperations = elasticsearchOperations;
this.entityInformationCreator = new ElasticsearchEntityInformationCreatorImpl(elasticsearchOperations this.entityInformationCreator = new ElasticsearchEntityInformationCreatorImpl(elasticsearchOperations
.getElasticsearchConverter().getMappingContext()); .getElasticsearchConverter().getMappingContext());
@@ -1,5 +1,5 @@
/* /*
* Copyright 2013 the original author or authors. * Copyright 2013-2017 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -29,19 +29,31 @@ import org.springframework.util.Assert;
* *
* @author Rizwan Idrees * @author Rizwan Idrees
* @author Mohsin Husen * @author Mohsin Husen
* @author Mark Paluch
*/ */
public class ElasticsearchRepositoryFactoryBean<T extends Repository<S, ID>, S, ID extends Serializable> extends public class ElasticsearchRepositoryFactoryBean<T extends Repository<S, ID>, S, ID extends Serializable> extends
RepositoryFactoryBeanSupport<T, S, ID> { RepositoryFactoryBeanSupport<T, S, ID> {
private ElasticsearchOperations operations; private ElasticsearchOperations operations;
/**
* Creates a new {@link ElasticsearchRepositoryFactoryBean} for the given repository interface.
*
* @param repositoryInterface must not be {@literal null}.
*/
public ElasticsearchRepositoryFactoryBean(Class<? extends T> repositoryInterface) {
super(repositoryInterface);
}
/** /**
* Configures the {@link ElasticsearchOperations} to be used to create Elasticsearch repositories. * Configures the {@link ElasticsearchOperations} to be used to create Elasticsearch repositories.
* *
* @param operations the operations to set * @param operations the operations to set
*/ */
public void setElasticsearchOperations(ElasticsearchOperations operations) { public void setElasticsearchOperations(ElasticsearchOperations operations) {
Assert.notNull(operations);
Assert.notNull(operations, "ElasticsearchOperations must not be null!");
setMappingContext(operations.getElasticsearchConverter().getMappingContext()); setMappingContext(operations.getElasticsearchConverter().getMappingContext());
this.operations = operations; this.operations = operations;
} }
@@ -0,0 +1 @@
org.springframework.data.repository.core.support.RepositoryFactorySupport=org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactory
+294
View File
@@ -1,6 +1,300 @@
Spring Data Elasticsearch Changelog Spring Data Elasticsearch Changelog
=================================== ===================================
Changes in version 2.1.15.RELEASE (2018-09-10)
----------------------------------------------
* DATAES-474 - Release 2.1.15 (Ingalls SR15).
Changes in version 3.1.0.RC2 (2018-08-20)
-----------------------------------------
* DATAES-472 - Release 3.1 RC2 (Lovelace).
Changes in version 2.1.14.RELEASE (2018-07-27)
----------------------------------------------
* DATAES-463 - Release 2.1.14 (Ingalls SR14).
* DATAES-283 - Remove dependency to Commons Lang.
Changes in version 3.0.9.RELEASE (2018-07-26)
---------------------------------------------
* DATAES-470 - TransportClientFactoryBean does not parse clusterNodes correctly.
* DATAES-469 - Is org.elasticsearch:elasticsearch a necessary dependency?.
* DATAES-467 - No mapping found for [_score] in order to sort on.
* DATAES-465 - Release 3.0.9 (Kay SR9).
* DATAES-317 - Add query logging to ElasticsearchTemplate.
* DATAES-283 - Remove dependency to Commons Lang.
Changes in version 3.1.0.RC1 (2018-07-26)
-----------------------------------------
* DATAES-471 - Adapt to changes in immutable entities support.
* DATAES-470 - TransportClientFactoryBean does not parse clusterNodes correctly.
* DATAES-469 - Is org.elasticsearch:elasticsearch a necessary dependency?.
* DATAES-467 - No mapping found for [_score] in order to sort on.
* DATAES-464 - Add support for @ReadOnlyProperty to prevent properties from being written.
* DATAES-462 - Add support for mapping document scores to entities.
* DATAES-452 - Release 3.1 RC1 (Lovelace).
* DATAES-317 - Add query logging to ElasticsearchTemplate.
Changes in version 3.0.8.RELEASE (2018-06-13)
---------------------------------------------
* DATAES-460 - Avoid pulling in Netty 3 as dependency.
* DATAES-448 - Release 3.0.8 (Kay SR8).
* DATAES-420 - Analyzer of main field ignored when using @MultiField annotation.
* DATAES-312 - NullHandling.NULLS_LAST not working in query.sort.
Changes in version 2.1.13.RELEASE (2018-06-13)
----------------------------------------------
* DATAES-447 - Release 2.1.13 (Ingalls SR13).
Changes in version 3.1.0.M3 (2018-05-17)
----------------------------------------
* DATAES-451 - Adapt to SpEL extension API changes in Spring Data Commons.
* DATAES-440 - Release 3.1 M3 (Lovelace).
* DATAES-422 - Add support for IndicesOptions in search queries.
* DATAES-420 - Analyzer of main field ignored when using @MultiField annotation.
* DATAES-412 - Highlighted fields is not getting passed to the elastic search query.
* DATAES-363 - AbstractElasticsearchRepository.existsById(..) always returns true.
* DATAES-312 - NullHandling.NULLS_LAST not working in query.sort.
* DATAES-198 - @Version has no effect, so therefore is not useful with spring data elasticsearch.
Changes in version 3.0.7.RELEASE (2018-05-08)
---------------------------------------------
* DATAES-438 - Expected a boolean [true/false] for property [index] but got [not_analyzed].
* DATAES-437 - Release 3.0.7 (Kay SR7).
* DATAES-412 - Highlighted fields is not getting passed to the elastic search query.
* DATAES-402 - Paging not working correctly.
* DATAES-363 - AbstractElasticsearchRepository.existsById(..) always returns true.
* DATAES-198 - @Version has no effect, so therefore is not useful with spring data elasticsearch.
Changes in version 2.1.12.RELEASE (2018-05-08)
----------------------------------------------
* DATAES-436 - Release 2.1.12 (Ingalls SR12).
Changes in version 3.1.0.M2 (2018-04-13)
----------------------------------------
* DATAES-439 - Adapt to API changes in Spring Data Commons.
* DATAES-434 - Remove explicit declaration of Jackson library versions.
* DATAES-432 - Export composable repositories via CDI.
* DATAES-427 - Release 3.1 M2 (Lovelace).
Changes in version 3.0.6.RELEASE (2018-04-04)
---------------------------------------------
* DATAES-434 - Remove explicit declaration of Jackson library versions.
* DATAES-430 - Release 3.0.6 (Kay SR6).
Changes in version 2.1.11.RELEASE (2018-04-04)
----------------------------------------------
* DATAES-434 - Remove explicit declaration of Jackson library versions.
* DATAES-424 - Fix line endings.
* DATAES-423 - Release 2.1.11 (Ingalls SR11).
Changes in version 3.0.5.RELEASE (2018-02-28)
---------------------------------------------
* DATAES-429 - Release 3.0.5 (Kay SR5).
Changes in version 3.0.4.RELEASE (2018-02-19)
---------------------------------------------
* DATAES-425 - Release 3.0.4 (Kay SR4).
Changes in version 3.1.0.M1 (2018-02-06)
----------------------------------------
* DATAES-424 - Fix line endings.
* DATAES-414 - Reduce scope of Lo4j dependencies to test.
* DATAES-410 - Adapt API changes in Property in test cases.
* DATAES-401 - Release 3.1 M1 (Lovelace).
* DATAES-361 - log4j2.xml in classpath root of the library prevents Spring Boot's logging auto-configuration to work.
Changes in version 3.0.3.RELEASE (2018-01-24)
---------------------------------------------
* DATAES-424 - Fix line endings.
* DATAES-417 - Release 3.0.3 (Kay SR3).
Changes in version 2.1.10.RELEASE (2018-01-24)
----------------------------------------------
* DATAES-416 - Release 2.1.10 (Ingalls SR10).
Changes in version 3.0.2.RELEASE (2017-11-27)
---------------------------------------------
* DATAES-414 - Reduce scope of Lo4j dependencies to test.
* DATAES-411 - Release 3.0.2 (Kay SR2).
Changes in version 2.1.9.RELEASE (2017-11-27)
---------------------------------------------
* DATAES-408 - Ensure Spring 5 compatibility in Ingalls.
* DATAES-404 - Release 2.1.9 (Ingalls SR9).
Changes in version 3.0.1.RELEASE (2017-10-27)
---------------------------------------------
* DATAES-410 - Adapt API changes in Property in test cases.
* DATAES-400 - Release 3.0.1 (Kay SR1).
* DATAES-361 - log4j2.xml in classpath root of the library prevents Spring Boot's logging auto-configuration to work.
Changes in version 2.1.8.RELEASE (2017-10-11)
---------------------------------------------
* DATAES-391 - Release 2.1.8 (Ingalls SR8).
Changes in version 3.0.0.RELEASE (2017-10-02)
---------------------------------------------
* DATAES-397 - Add explicit automatic module name for Java 9.
* DATAES-395 - Upgrade to OpenWebBeans 2.0.1.
* DATAES-392 - Release 3.0 GA (Kay).
Changes in version 3.0.0.RC3 (2017-09-11)
-----------------------------------------
* DATAES-376 - Release 3.0 RC3 (Kay).
Changes in version 2.1.7.RELEASE (2017-09-11)
---------------------------------------------
* DATAES-378 - Release 2.1.7 (Ingalls SR7).
Changes in version 2.1.6.RELEASE (2017-07-26)
---------------------------------------------
* DATAES-374 - Release 2.1.6 (Ingalls SR6).
Changes in version 3.0.0.RC2 (2017-07-25)
-----------------------------------------
* DATAES-375 - Release 3.0 RC2 (Kay).
Changes in version 3.0.0.RC1 (2017-07-25)
-----------------------------------------
* DATAES-373 - Update ES to 5.5.0.
* DATAES-369 - Adapt to API changes in mapping subsystem.
* DATAES-359 - Release 3.0 RC1 (Kay).
* DATAES-274 - Jackson throws exception when deserializing Page.
Changes in version 2.1.5.RELEASE (2017-07-24)
---------------------------------------------
* DATAES-358 - Release 2.1.5 (Ingalls SR5).
Changes in version 3.0.0.M4 (2017-06-14)
----------------------------------------
* DATAES-353 - Release 3.0 M4 (Kay).
* DATAES-334 - Readme has broken jira link.
* DATAES-285 - Upgrade to Elasticsearch 5.0.
Changes in version 2.1.4.RELEASE (2017-06-08)
---------------------------------------------
* DATAES-349 - Release 2.1.4 (Ingalls SR4).
Changes in version 2.0.11.RELEASE (2017-06-07)
----------------------------------------------
* DATAES-348 - Release 2.0.11 (Hopper SR11).
Changes in version 3.0.0.M3 (2017-05-09)
----------------------------------------
* DATAES-352 - Adapt to API changes in CrudRepository.
* DATAES-350 - Adapt to moved CustomConversions to Spring Data Commons.
* DATAES-344 - Release 3.0 M3 (Kay).
Changes in version 2.0.10.RELEASE (2017-04-19)
----------------------------------------------
* DATAES-347 - Release 2.0.10 (Hopper SR10).
Changes in version 2.1.3.RELEASE (2017-04-19)
---------------------------------------------
* DATAES-346 - Release 2.1.3 (Ingalls SR3).
Changes in version 2.0.9.RELEASE (2017-04-19)
---------------------------------------------
* DATAES-336 - Release 2.0.9 (Hopper SR9).
Changes in version 2.1.2.RELEASE (2017-04-19)
---------------------------------------------
* DATAES-335 - Release 2.1.2 (Ingalls SR2).
Changes in version 3.0.0.M2 (2017-04-04)
----------------------------------------
* DATAES-342 - Adapt to API changes in RepositoryConfigurationExtensionSupport.
* DATAES-329 - Remove references to single-argument assertion methods of Spring.
* DATAES-328 - Integrate Data Commons Java 8 upgrade branch.
* DATAES-325 - Remove references to GenericCollectionTypeResolver in favor of ResolvableType.
* DATAES-322 - Update project documentation with the CLA tool integration.
* DATAES-315 - Adapt API in RepositoryFactoryBeanSupport implementation.
* DATAES-313 - Register repository factory in spring.factories for multi-store support.
* DATAES-311 - Release 3.0 M2 (Kay).
Changes in version 2.0.8.RELEASE (2017-03-02)
---------------------------------------------
* DATAES-329 - Remove references to single-argument assertion methods of Spring.
* DATAES-326 - Release 2.0.8 (Hopper SR8).
Changes in version 2.1.1.RELEASE (2017-03-02)
---------------------------------------------
* DATAES-329 - Remove references to single-argument assertion methods of Spring.
* DATAES-327 - Release 2.1.1 (Ingalls SR1).
* DATAES-325 - Remove references to GenericCollectionTypeResolver in favor of ResolvableType.
Changes in version 2.0.7.RELEASE (2017-01-26)
---------------------------------------------
* DATAES-319 - Release 2.0.7 (Hopper SR7).
Changes in version 2.1.0.RELEASE (2017-01-26)
---------------------------------------------
* DATAES-322 - Update project documentation with the CLA tool integration.
* DATAES-320 - Release 2.1 GA (Ingalls).
Changes in version 2.0.6.RELEASE (2016-12-21)
---------------------------------------------
* DATAES-304 - Release 2.0.6 (Hopper SR6).
Changes in version 2.1.0.RC1 (2016-12-21)
-----------------------------------------
* DATAES-315 - Adapt API in RepositoryFactoryBeanSupport implementation.
* DATAES-313 - Register repository factory in spring.factories for multi-store support.
* DATAES-289 - Upgrade to Elasticsearch 2.4.
* DATAES-284 - Downgrade to Jackson 2.7.5 until Elasticsearch is compatible with 2.8.
* DATAES-281 - Can't save entity without id setter.
* DATAES-275 - Release 2.1 RC1 (Ingalls).
Changes in version 3.0.0.M1 (2016-11-23)
----------------------------------------
* DATAES-307 - Set up 3.0 development.
* DATAES-306 - Release 3.0 M1 (Kay).
Changes in version 2.0.5.RELEASE (2016-11-03) Changes in version 2.0.5.RELEASE (2016-11-03)
--------------------------------------------- ---------------------------------------------
* DATAES-300 - Release 2.0.5 (Hopper SR5). * DATAES-300 - Release 2.0.5 (Hopper SR5).
+1 -1
View File
@@ -1,4 +1,4 @@
Spring Data Elasticsearch 2.1 M1 Spring Data Elasticsearch 2.1.15
Copyright (c) [2013-2016] Pivotal Software, Inc. Copyright (c) [2013-2016] Pivotal Software, Inc.
This product is licensed to you under the Apache License, Version 2.0 (the "License"). This product is licensed to you under the Apache License, Version 2.0 (the "License").