Skip to content

Support different routing for each id in multiget. #1956

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

Merged
merged 1 commit into from
Oct 9, 2021

Conversation

sothawo
Copy link
Collaborator

@sothawo sothawo commented Oct 9, 2021

it works now with:

Query query = Query.multiGetQueryWithRouting(
  Arrays.asList(
    new Query.IdWithRouting(ID_1, ROUTING_1),
    new Query.IdWithRouting(ID_2, ROUTING_2),
    new Query.IdWithRouting(ID_3, ROUTING_3)
    )
);

List<MultiGetItem<RoutingEntity>> multiGetItems = operations.multiGet(query, RoutingEntity.class);

Closes #1954

@sothawo sothawo merged commit 2450d57 into spring-projects:main Oct 9, 2021
@sothawo sothawo deleted the #1954-multiget-with-routing branch October 9, 2021 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support different routing for each id in multiget
1 participant