title: Hibernate locking MySQL with one single query
body: <p>I am having a strange issue with Hibernate/MySQL, where the database is locked and blocks completely all queries. <code>show processlist</code> says following: <a href="https://gist.github.com/knyttl/aec84d0abfc3f5fcd921" rel="nofollow">https://gist.github.com/knyttl/aec84d0abfc3f5fcd921</a></p>
  
  <p>It seems to me really strange that such simple query can lock the table. Especially as the transaction is as short as this native query.</p>
  
  <p>I find it especially strange that it blocks ALL other queries on ALL tables.</p>