[JAVA-3143] Custom MongoConverters not loaded when using @Query Annotations Created: 19/Jan/19 Updated: 24/Jan/19 Resolved: 24/Jan/19 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Codecs |
| Affects Version/s: | 3.9.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Sherif Neamatalla | Assignee: | Ross Lawley |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu 18.10 |
||
| Description |
|
When trying to use @Query Annotation on a mongoRepo, the custom codecs are not loaded, however when using normal findBy.., the codecs are correctly loaded. Code for my Repo :
Code for Codecs :
Mongo Configuration :
It's also worth saying that I tried changing the query to
Which according to the mongo documentation is the query executed when using findByFieldBetween(), however it does not seem to be able to load the codecs, while deleting the @Query annotation does lead to the codecs being loaded.
|
| Comments |
| Comment by Ross Lawley [ 22/Jan/19 ] |
|
Hi sherifneamatalla, This project is for the Mongo Java Driver and it looks like the issue is related to SpringData. I think you may need to go via the Spring Data help resources. Ross |