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 about the query hints specified in the annotations, see 2.7.53 @QueryHint in the manual uCosminexus Application Server API Reference Guide.
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:
Table 6-68 Query hints that can be used in Cosminexus JPA Provider
Key name | Description | Specifiable value | Default |
---|---|---|---|
cosminexus.jpa.pessimistic-lock | Specifies whether the pessimistic lock will be used. |
| NoLock |