I am doing some big queries on my database with Hibernate and I sometimes hit timeouts. I would like to avoid setting the timeout manually on every `Query` or `Criteria`.
Is there any property I can give to my Hibernate configuration that would set an acceptable default for all queries I run?
If not, how can I set a default timeout value on Hibernate queries?
以上就是How to set a default query timeout with JPA and Hibernate?的详细内容，更多请关注web前端其它相关文章！