-
Notifications
You must be signed in to change notification settings - Fork 192
Repository with Interface doesn't work #1364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please put the information from our Slack messages here so we don't have to repeat everything. Subsequently... if the entity class in a repository definition is not the concrete class of the entity that was saved (i.e. the saved class implements or extends the class (interface, abstract class, super class) specified in the repository definition) then either the 'type' property in the document must be the classname of the saved class OR the typeMapper must map that property to the classname.
|
duplicate of #1315 |
Given an interface with method signature
and a CouchbaseRepository with this Interface
It looks like Spring Data tries to fetch all fields from the entity, which in case of an interface is null. It throws the following error:
If we remove all method signatures from the Interface, there is a different error:
The text was updated successfully, but these errors were encountered: