Skip to content

Couldn't find PersistentEntity for type class com.example.demo.dto.Address #1667

Closed
@quickiwiki

Description

@quickiwiki

Having some trouble the past few days with the new Spring data 4 Elasticsearch, I get " Couldn't find PersistentEntity for type class com.example.demo.dto.Address"?
Before spring data 4 Jackson Object Mapping could be used but now CustomConversion should be used instead. There is the official reference https://docs.spring.io/spring-data/elasticsearch/docs/current/reference/html/#elasticsearch.mapping.meta-model.conversions providing an example converting from and to Address object.

I tried the example from the official reference and run into the problem. The demo project is included.
demo_project.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions