borinquenkid commented on code in PR #15583:
URL: https://github.com/apache/grails-core/pull/15583#discussion_r3131785205
##########
grails-data-mongodb/core/src/main/groovy/org/grails/datastore/mapping/mongo/query/MongoQuery.java:
##########
@@ -138,11 +138,78 @@ public void handle(EmbeddedQueryEncoder queryEncoder,
IdEquals criterion, Docume
Object value = criterion.getValue();
MappingContext mappingContext = entity.getMappingContext();
PersistentProperty identity = entity.getIdentity();
- Object converted =
mappingContext.getConversionService().convert(value, identity.getType());
+ // Prefer the configured storage type ('storedAs' on the id
mapping) so query BSON
Review Comment:
Is there a unit test for this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]