title: How to write java.sql.Blob to JPA entity?
body: <p>I have a JPA entity with java.sql.Blob:</p>
  
  <pre><code>@Entity
  public class LargeData {
  
    @Lob
    private java.sql.Blob data;
  
    //getters/setters
  }
  </code></pre>
  
  <p>How to create instance of this entity? I want to set <code>Blob</code> with <code>setData()</code> method, but how to get <code>Blob</code> from JPA? <code>java.sql.Blob</code> is only interface, there are different implementations for different databases, so I assume JPA should give me right implementation. How to get it?</p>