title: Table exclusive lock with JPA
body: <p>Is it possible to lock exclusively entire table with JPA in database agnostic way (without using native queries for instance)? So far I saw only <a href="https://docs.oracle.com/javaee/6/api/javax/persistence/EntityManager.html#lock(java.lang.Object,%20javax.persistence.LockModeType)" rel="noreferrer"><code>EntityManager.lock(*)</code></a> but this locks only given record.</p>