title: Data truncation error - Data too long for column
body: <p>The interesting thing is that in the entity:</p>
  
  <pre><code>public static final int maxContentSize = 2097152; //2Mb
  @Lob
  @Column(length=maxContentSize)
  private byte[] content;
  @Column(length = 100)
  private String mimetype;
  @Column(length = 50)
  private String fileName;
  </code></pre>
  
  <p>However, some files (65-70k size) are inserted OK, but most of them get the error:</p>
  
  <pre><code>com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'CONTENT' at row 1
  </code></pre>
  
  <p>I've checked, before creating the entities, the sizes are correct.</p>