-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refine @DocumentReference
documentation about self._id
references
#4925
Comments
What is the data type of your identifiers in the database? Using Have you tried using |
Quick response: In my current project,I modelled neither Indeed, I could try with `@MongoId. Is there another possibility to influence the corresponding logic without using annotations (without touching the model) ? |
Just to confirm, my assumption holds true: {
"_id": {
"$oid": "67d98819f948d44f0a88565e"
},
"title": "title 0",
"publisherId": "67d98819f948d44f0a88565d",
"_class": "com.example.demo.Book"
} When using String Id's, then the object is actually using an The reference lookup operates on the result To make this work, actually |
@DocumentReference
documentation about self._id
references
I turned this ticket into a documentation enhancement and updated the docs to reflect the type relationship. |
thank you very much @mp911de for updating the documentation ! So all solutions for fine grained configuration are based on model/entity enhancements via annotations, e.g. Thx again! |
Hello,
according to documentation this works
I tried to change the data type from
ObjectId
toString
and it does not work.What am I missing ?
The text was updated successfully, but these errors were encountered: