title: Overriding timeout for database connection in properties file
body: <p>I was wondering if there is a specific way to override database connection timeout in the properties file in my Java web project? I am using Hibernate, Spring, and MySQL DB. I have tried several different property fields and reduced the timeout time to 1 millsecond, yet the connection is still completed with transactions still being processed properly.</p>
  
  <p>These are the property fields I have used to no avail...</p>
  
  <ul>
  <li><code>spring.jpa.properties.javax.persistence.query.timeout=1</code></li>
  <li><code>spring.jdbc.template.query-timeout=1</code></li>
  <li><code>hibernate.c3p0.timeout=1</code></li>
  </ul>
  
  <p>Is hibernate overriding this timeout value or am I just setting it improperly?
  Thanks in advance!</p>