Hi, I'm using the @id annotation leaving the generation to Mongo, but I'm not sure how to get the generated Id after inserting.
Before switching to the jackson codec, I was using just a plain Document and I was able to get the _id field after doing the insertion.
Any idea?
Thanks.
Hi, I'm using the @id annotation leaving the generation to Mongo, but I'm not sure how to get the generated Id after inserting.
Before switching to the jackson codec, I was using just a plain Document and I was able to get the _id field after doing the insertion.
Any idea?
Thanks.