Skip to content

Get Id of inserted document #9

@leangl

Description

@leangl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions