Skip to content
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

String-query accepting UUID renders to $uuid [DATAMONGO-1911] #2811

spring-projects-issues opened this issue Mar 23, 2018 · 0 comments


Copy link

@spring-projects-issues spring-projects-issues commented Mar 23, 2018

Mark Paluch opened DATAMONGO-1911 and commented

String-based queries via @Query(…) render a predicate prefixed with $uuid that can't be executed anymore.

public interface CredentialsRepository extends MongoRepository<Credentials, Long> {
    @Query("{ 'userId' : ?0}")
    Credentials retrieveWithUserId(UUID userId);

renders a query:

{userId: {$uuid : …} }

instead of

{userId: … }

Affects: 2.0.3 (Kay SR3)

Reference URL:

Issue Links:

  • DATAMONGO-2029 String query methods do not convert List<UUID> and List<byte[]> to their correct representation

Referenced from: pull request #544

Backported to: 2.0.6 (Kay SR6)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants