spring-projects / spring-data-examples

Spring Data Example Projects
Apache License 2.0
5.2k stars 3.4k forks source link

Add elasticsearch repository test #679

Closed puppylpg closed 4 days ago

puppylpg commented 9 months ago
  1. Add elasticsearch repository test cases;
  2. 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'.
  3. Use singleton containers when testing using testcontainers;
mp911de commented 2 months ago

@sothawo what do you think?

sothawo commented 2 months ago

I will have a look, but cannot do this before the next weekend

mp911de commented 4 days ago

Closing as this pull request wasn't updated in time. If you would like us to look at this issue, please provide additional information and we will re-open the issue.