2.10.1.8.3. Query Timeout Hint

To specify a query timeout hint in milliseconds to those database drivers that support it, specify a hint name of jakarta.persistence.query.timeout with an integer value greater than zero, or zero for no timeout which is the default behavior.