You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When mapping DTO projection, warning should not be logged (ant potentially no exception in internal code)
Actual Behaviour
When mapping DTO projection, warring is added to logs: 09:31:28.928 [Test worker] WARN i.m.d.m.o.AbstractMongoRepositoryOperations - Failed to map @Introspection annotated result. Now attempting to fallback and read object from the document. Error: Error instantiating type [com.example.customer.CustomerView] from introspection: Null argument specified for [id]. If this argument is allowed to be null annotate it with @Nullable
Expected Behavior
When mapping DTO projection, warning should not be logged (ant potentially no exception in internal code)
Actual Behaviour
When mapping DTO projection, warring is added to logs:
09:31:28.928 [Test worker] WARN i.m.d.m.o.AbstractMongoRepositoryOperations - Failed to map @Introspection annotated result. Now attempting to fallback and read object from the document. Error: Error instantiating type [com.example.customer.CustomerView] from introspection: Null argument specified for [id]. If this argument is allowed to be null annotate it with @Nullable
Looks like issue is here:
micronaut-data/data-mongodb/src/main/java/io/micronaut/data/mongodb/operations/AbstractMongoRepositoryOperations.java
Line 171 in 2f942d6
Steps To Reproduce
Environment Information
No response
Example Application
https://github.com/jurna/demo-micronaut/tree/customer_projection
Version
4.7.1
The text was updated successfully, but these errors were encountered: