[BUG] Can't save to CosmosDB if partition key fields are inherited from parent class #42362
Labels
Client
This issue points to a problem in the data-plane of the library.
Cosmos
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Describe the bug
Spring Cosmos library fails to retrieve partition key value from entity if that field is inherited from a different class.
Exception or Stack Trace
To Reproduce
Call
CosmosRepository.saveAll
passing in entity from code snippet.Code Snippet
Expected behavior
Correct partition key value should be retrieved pulled from the entity.
Setup (please complete the following information):
The text was updated successfully, but these errors were encountered: