13.4 Query hint
In Cosminexus JPA Provider, you can specify a query hint in the hint element that is the lower element of the named-query element in the O/R mapping file. Note that you can also specify the query hint in the @Hint annotation of the argument for the @NamedQuery annotation. For details on the query hint to be specified for annotations, see 8.12.53 @QueryHint.
The following table describes the query hints that can be specified in the hint element that is the lower element of the named-query element in the O/R mapping file:
Key name |
Description |
Specifiable value |
Default |
---|---|---|---|
Specifies whether the pessimistic lock will be used. |
|
NoLock |
- Important note
-
If a value outside the specifiable range is set for a query hint specified in the O/R mapping file, an exception will occur when the application starts. Note that the value is not case sensitive.