Hibernate SQLQuery#executeUpdate() does not regard SQLQuery#setTimeout() and does not invoke Statement#setQueryTimeout()

Solution In Progress - Updated -

Issue

  • Hibernate SQLQuery#executeUpdate() does not regard SQLQuery#setTimeout() and does not invoke Statement#setQueryTimeout().
  • As far as I tested, Statement#setQueryTimeout() is invoked when executingSQLQuery.list() and Query.executeUpdate() works fine but it's not invoked when executing SQLQuery.executeUpdate().

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x
  • Hibernate

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.