spring-projects / spring-data-examples

Spring Data Example Projects
Apache License 2.0
5.17k stars 3.39k forks source link

Add elasticsearch repository test #679

Open puppylpg opened 7 months ago

puppylpg commented 7 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 5 days ago

@sothawo what do you think?

sothawo commented 5 days ago

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