[x] You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
[x] You submit test cases (unit or integration tests) that back your changes.
[x] 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).
Add elasticsearch repository test cases;
Fix: use LocalDate rather than String type to match the annotation @Field(type = Date). The former String type is a misuse of date type and will cause the following warn:
WARN org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchPersistentProperty - Unsupported type 'class java.lang.String' for date property 'date'.
LocalDate
rather thanString
type to match the annotation@Field(type = Date)
. The formerString
type is a misuse of date type and will cause the following warn: