title: How to prevent Spring Data MongoDB from mapping id field as object id?
body: <p>I have set up my own mechanism for assigning identities to my domain objects, and so when persisting them, there really isn't much value for me to keep track of what MongoDB assigns to them. However, I name the identity fields for my domain classes <code>id</code> because, well, it's concise and understandable. The problem is that, <a href="http://docs.spring.io/spring-data/mongodb/docs/current/reference/html/#mongo-template.id-handling" rel="noreferrer">according to the documentation</a>, Spring will automatically map this field to MongoDB's assigned ObjectID. How do I prevent this from happening without having to rename my id field, or defining a custom identity field annotated with <code>@Id</code> just for the sake of working around this?</p>