Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 WebSphere V8 上使用 Open JPA 2.0 - IBM 实现。我需要在单个查询级别设置查询超时。如何做到这一点?
使用以下提示将为所有查询设置超时,但我需要为特定查询控制它
javax.persistence.query.timeout
Errm, perhaps ...
query.setHint("javax.persistence.query.timeout", timeout);