jakartaee / persistence

https://jakartaee.github.io/persistence/
Other
187 stars 55 forks source link

add EntityTransaction.setTimeout #574

Closed gavinking closed 4 months ago

gavinking commented 4 months ago

see #573

gavinking commented 4 months ago

Is usage of query.setTimeout(500) an alternative to query.setHint("jakarta.persistence.query.timeout", 500) or is there any difference?

It's the same.

it may be worth adding the answer to the javadoc

Done.