-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Query annotation support #14661
Query annotation support #14661
Conversation
...data-cosmos-core/src/main/java/com/azure/spring/data/cosmos/core/ReactiveCosmosTemplate.java
Show resolved
Hide resolved
...src/main/java/com/azure/spring/data/cosmos/repository/query/AbstractReactiveCosmosQuery.java
Show resolved
Hide resolved
...smos-core/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryMethod.java
Outdated
Show resolved
Hide resolved
...e/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosQueryMethod.java
Outdated
Show resolved
Hide resolved
...smos-core/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryMethod.java
Show resolved
Hide resolved
...test/src/test/java/com/azure/spring/data/cosmos/repository/repository/ContactRepository.java
Outdated
Show resolved
Hide resolved
...t/src/test/java/com/azure/spring/data/cosmos/repository/integration/ContactRepositoryIT.java
Show resolved
Hide resolved
...t/src/test/java/com/azure/spring/data/cosmos/repository/integration/ContactRepositoryIT.java
Outdated
Show resolved
Hide resolved
...c/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveCourseRepository.java
Outdated
Show resolved
Hide resolved
...c/test/java/com/azure/spring/data/cosmos/repository/repository/ReactiveCourseRepository.java
Outdated
Show resolved
Hide resolved
/azp run java - cosmos - ci |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run java - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run java - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
...smos-core/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryMethod.java
Outdated
Show resolved
Hide resolved
...e/src/main/java/com/azure/spring/data/cosmos/repository/query/ReactiveCosmosQueryMethod.java
Show resolved
Hide resolved
...smos-core/src/main/java/com/azure/spring/data/cosmos/repository/query/CosmosQueryMethod.java
Show resolved
Hide resolved
/azp run java - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please make integration test pipeline pass.
/azp run java - cosmos - ci |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run java - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, @mbhaskar - can you please add query annotation sample code to the readme so that we can mark this as feature complete?
I will do that once the PR is in. Thanks |
… add annotated queries to their repositories using @query(value = "<query>") which opens up all the query capabilities of underlying cosmos java sdk to the cosmos spring driver.
4722fbe
to
0888f19
Compare
/azp run java - cosmos - ci |
Azure Pipelines successfully started running 1 pipeline(s). |
test pipeline already run. Rebased and pushed to get failing build analyze job to pass. Merging |
This enables end users to add annotated queries to their repositories using @query(value = "") which opens up all the query capabilities of underlying cosmos java sdk to the cosmos spring driver.
Examples
Synchronous:
Reactive:
#12714: Support
@Query
annotation from spring-data-commonsCloses: #12714