Results 1 to 2 of 2

Thread: MongoDB Distinct Queries

  1. #1

    Default MongoDB Distinct Queries

    Hi,

    according to the reference manual for Spring Data, apparently distinct is supported in the method name to auto generate the appropriate query.

    However, I cannot get this to work and the example is not clear.

    Any further resources I can look at?

    R

  2. #2

    Default

    Quote Originally Posted by too_many_details View Post
    Hi,

    according to the reference manual for Spring Data, apparently distinct is supported in the method name to auto generate the appropriate query.

    However, I cannot get this to work and the example is not clear.

    Any further resources I can look at?

    R
    I eventually started looking through the Spring source code. From what I can tell, the parser knows about distinct, but the MongoQueryCreator class never uses it.

    Can anyone comment? Oliver Gierke is the author.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •