6.16.5 Specifying a query hint

During the execution of a query, you can specify a query hint as a vendor-dependent hint. With Cosminexus JPA Provider, you specify a query hint when you use the pessimistic lock.

Specify the query hint at the following locations:

If you specify a value outside the range specifiable in the query hint, an exception occurs. Note that the specified value is not case sensitive.

The time when an exception occurs differs depending on the location where the query hint is specified. The timing for the occurrence of an exception is as follows:

For details on the query hints supported by Cosminexus JPA Provider, see 2.1 Range of supported annotations in the uCosminexus Application Server API Reference Guide if you use annotations, and 6.3 O/R mapping file in the uCosminexus Application Server Definition Reference Guide if you use the O/R mapping file.