title: Can Hibernate data access throw exceptions similar to Spring DeadlockLoserDataAccessException or other TransientDataAccessException?
body: <p>I'm currently working on a project that uses data access on different databases. Our main database is accessed through Hibernate (either via the <code>Criteria</code> framework, or HQL queries), but we also have accesses to other dbs using plain JDBC / SQL queries (via Spring-Jdbc).</p>
  
  <p>For some of our JDBC calls, we had to deal with the possibility of the DAO layer throwing some flavours of the Spring runtime <code>TransientDataAccessException</code>, like <code>DeadlockLoserDataAccessException</code>, or <code>CannotAcquireLockException</code>.</p>
  
  <p><strong>My question:</strong> should we plan for similar exceptions thrown by the Hibernate DAOs? It's very difficult to write tests that would exhibit such exceptions, and I don't want to build support for these if they cannot be thrown. And if they can, which exceptions exactly? What do you think?</p>