title: Spring Data Mongodb : Deserialize using builder
body: <p>I'm wondring if there's a way to configure spring data to use a builder to deserialise a document. Something like <code>JsonPOJOBuilder</code> or <code>JsonDeserialize(builder = ADocumentBuilder)</code> for jackson ?</p>
  
  <p>In fact I'm using lombok with <code>@SuperBuilder</code> annotation like :</p>
  
  <pre class="lang-java prettyprint-override"><code>@Data
  @RequiredArgConstrcutor
  @SuperBuilder
  public abstract class AttachementBase {
    private String a;
    private final String b; //maybe final
    private String c;
  }
  </code></pre>
  
  <pre class="lang-java prettyprint-override"><code>@Value
  @SuperBuilder
  @Document
  public class Attachement extend AttachementBase{
    private String d;
  }
  </code></pre>
  
  <p>Evething's works fine with the builder and how to use it, except when calling the <code>AttachementRepository.findXX()</code> Spring trys to call a constructor but it cannot find the appropriate one.</p>
  
  <p>Lombok generates <code>AttachementBuilder</code> in the <code>Attachement</code> class and I want to use it to deserialise this document.</p>
  
  <p>I do not want this post be related to lombok, i juste illustrated the use case. The question is how to use a builder to deserialize a document in Spring-data-mongodb ?</p>