JPA Method
in javax.persistence.StoredProcedureQuery

StoredProcedureQuery setHint(
  String hintName, 
  Object value
)


Set a query property or hint. The hints elements may be used to specify query properties and hints. Properties defined by this specification must be observed by the provider. Vendor-specific hints that are not recognized by a provider must be silently ignored. Portable applications should not rely on the standard timeout hint. Depending on the database in use, this hint may or may not be observed.
Parameters:
hintName - name of the property or hint
value - value for the property or hint
Return:
the same query instance
Throws:
IllegalArgumentException - if the second argument is not valid for the implementation
Since:
JPA 2.1