Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.31k stars 1.96k forks source link

[BUG] Spring Boot Azure Data Cosmos repository has no save(S Entity) #35191

Closed apoguy closed 10 months ago

apoguy commented 1 year ago

Describe the bug ReactiveCosmosRepository<T, K> has no save(S entity).

Code AccessRepository

...
import com.azure.spring.data.cosmos.repository.ReactiveCosmosRepository;

@Repository
public interface AccessRepository extends ReactiveCosmosRepository<Access, String> {
}

Service:

@Component
public class Register implements Function<RegisterRequest, Mono<RegisterResponse>> {

    @Autowired
    private AccessRepository accessRepository;

...

image

Setup (please complete the following information):

Netyyyy commented 1 year ago

Hi @apoguy , Thanks for reporting. Refer to Which Version of Spring Cloud Azure Should I Use Could you try with com.azure.spring:spring-cloud-azure-starter-data-cosmos:4.8.0, com.azure.spring:spring-cloud-azure-dependencies:4.8.0 and SpringBoot:2.x.

sauravBhasin commented 11 months ago

Hi Team, is this issue resolved, we have long pending upgrades stuck due to this.

Netyyyy commented 11 months ago

Hi @sauravBhasin , have you tried with the right compatible versions as I mentioned? Does it work?

github-actions[bot] commented 11 months ago

Hi @apoguy. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

github-actions[bot] commented 11 months ago

Hi @apoguy, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!