title: Should I encapsulate id field with my own type?
body: <p>Considering below snippets:</p>
  
  <pre><code>class User {
    String id;
  
    ...other fields
  }
  </code></pre>
  
  
  
  <pre><code>class Id extends String {
  
  }
  
  class User {
    Id id;
  
    ...other fields
  }
  </code></pre>
  
  <p>Which one should I use? I've never seen anoyone using their own Id type. Now I'm thinking: are there any drawbacks to do it?</p>