title: How to fix “Incorrect string value for the column at the row 1” errors?
body: <pre><code>How to fix “Incorrect string value for the column at the row 1” errors 
  </code></pre>
  
  <p>In my java project, I am using hibernate so in my entity class for the field PASSWORD.</p>
  
  <p>I want to use encryption and decryption using the @ColumnTransformer</p>
  
  <pre><code>    @Column(name="PASSWORD",length=100)
      @ColumnTransformer(
                read="AES_DECRYPT(PASSWORD, 'ABCD')", 
                write="AES_ENCRYPT(?, 'ABCD')")
      private String password;
  </code></pre>
  
  <p>but at the saving time, it is throwing following exception </p>
  
  <pre><code>javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Incorrect string value: '\x80\x11(\xC4\xAB\x10...' for column 'PASSWORD' at row 1
  </code></pre>
  
  <p>So How can I resolved above exception?</p>