title: Spring Data Entity UUID is stored as legacy UUID in MongoDB
body: <p>I'm dumping some data into my MongoDb and generate a UUID on the way. In the collection, this UUID field is stored as LUUID (legacy UUID - type 3) and I don't know how to avoid this, because I would want the format to be the standard UUID (type 4).</p>
  
  <p>Entity:</p>
  
  <pre><code>@Document(collection = "sms")
  public class SmsEntity {
      ...
      private UUID ubmMessageSid;  // &lt;- this field gets stored as LUUID
      ...
  
      public static class Builder {
      ...
          private UUID ubmMessageSid;
      ...
  
          public Builder ubmMessageSid(UUID ubmMessageSid) {
              this.ubmMessageSid = ubmMessageSid;
              return this;
          }
  
          public SmsEntity build() {return new SmsEntity(this);}
      }
  }
  </code></pre>
  
  <p>Repo:</p>
  
  <pre><code>@Repository
  public interface SmsRepository extends CrudRepository&lt;SmsEntity, String&gt; {
  }
  </code></pre>
  
  <p>Service storing this entity:</p>
  
  <pre><code>...
  var ubmId = UUID.randomUUID();
  var smsEntity = SmsEntity.builder()
      .ubmMessageSid(ubmId)
      ...
      .build();
  repository.save(smsEntity);
  </code></pre>
  
  <p>Anything I have to annotate or configure to store the UUID as Binary/type4?</p>