title: Cannot delete or update a parent row after disable foreign key checks
body: <p>I want to update the key in a table and this key is FK in other tables.</p>
  
  <pre><code>em.createNativeQuery("SET FOREIGN_KEY_CHECKS=0").getResultList().
  
  em.createNativeQuery("update user set name = ?1  where name = ?2").executeUpdate();
  
  query.setParameter(1, "aa");
  query.setParameter(2, "bb");
  </code></pre>
  
  <p>However i get an exception even if I disabled the foreign key checks.</p>
  
  <blockquote>
    <p>com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:
    Cannot delete or update a parent row: a foreign key constraint fails
    (<code>test_import_1</code>.<code>assessment_user</code>, CONSTRAINT
    <code>FK32kg3rlqty5i2i729a22icn7q</code> FOREIGN KEY (<code>user_name</code>) REFERENCES
    <code>user</code> (<code>name</code>))</p>
  </blockquote>