Can '_id' be mapped with Java UUID?
<p>Initially I wanted to map MongoDB's <code>_id</code> in my models. For example:</p>

<pre><code>case class User(_id: Option[BSONObjectID], ...)
</code></pre>

<p>However, this caused a lot of problems because I had to set the <code>_id</code> after I inserted a user document. Therefore, I replaced this attribute by using Java's <code>UUID</code> class. Which means that I will have only <code>id</code> in my model and <code>_id</code> as well as <code>id</code> in the database. I started to use this now for all my models, because I think it's a bad practice to store database-related info in my models (what if I switch to a SQL database?). Can I use <code>UUID</code>s as a valid replacement for <code>_id</code> for all my documents?</p>