I'm using spring-data-mongodb:1.2.0.RELEASE and QueryDSL:2.9.0.
I have a class as follow:
And a repository as follow:
When I'm querying me repository as follow:
All is fine, I can see in the mongo db log the next query:
But when I'm quering with an array of identifiers
I get nothing.
I can see in the mongo log that the query is:
Which is not using the ObjectId wraping.
So, is it a bug on ?
I have a class as follow:
Code:
@Document(collection = "A")
public class A {
public BigInteger id;
}
Code:
@Repository
public interface ARepository extends MongoRepository<A, BigInteger>, QueryDslPredicateExecutor<A>
When I'm querying me repository as follow:
Code:
QA.a.id.eq(a.id)
Code:
query db.A query: { _id: ObjectId('51b8a1dfea34feab29624713') }
Code:
QA.a.id.in(a.id,a.id)
I can see in the mongo log that the query is:
Code:
command db.$cmd command: { count: "A", query: { _id: { $in: [ "25291516816863698974474381015", "25291516816863698974474381015" ] } } }
So, is it a bug on ?