When an exception is thrown due to an expiration of a Query timeout an _org.hibernate.exception.GenericJDBCException _ exception is thrown when the underlying database is PostgreSQL (See attached stack trace). This forces to do some extra work to identify that the exception is caused because of the timeout. Note that when using Oracle the correct org.hibernate.QueryTimeoutException is thrown instead. |