Package org.hibernate.jpa
Interface SpecHints
- All Known Subinterfaces:
AvailableHints
public interface SpecHints
The hints explicitly defined by the Jakarta Persistence specification
which are available for both queries and loading.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Hint specifying how Hibernate should interact with the second level cache when it has the opportunity to retrieve data from the cache.static final String
Hint specifying how Hibernate should interact with the second level cache when it has the opportunity to store data in the cache.static final String
Hint providing aEntityGraph
which should be interpreted as a "fetch graph".static final String
Hint providing aEntityGraph
which should be interpreted as a "load graph".static final String
Hint indicating whether to extend pessimistic locking to associated tables.static final String
Hint requesting a pessimistic lock timeout (in milliseconds).static final String
The Jakarta Persistence defined hint for requesting a timeout be applied to aQuery
executions.
-
Field Details
-
HINT_SPEC_FETCH_GRAPH
Hint providing aEntityGraph
which should be interpreted as a "fetch graph".- See Also:
-
HINT_SPEC_LOAD_GRAPH
Hint providing aEntityGraph
which should be interpreted as a "load graph".- See Also:
-
HINT_SPEC_LOCK_TIMEOUT
Hint requesting a pessimistic lock timeout (in milliseconds).- See Also:
-
HINT_SPEC_LOCK_SCOPE
Hint indicating whether to extend pessimistic locking to associated tables. Expected to be an instance ofPessimisticLockScope
- See Also:
-
HINT_SPEC_QUERY_TIMEOUT
The Jakarta Persistence defined hint for requesting a timeout be applied to aQuery
executions.- See Also:
- Implementation Specification:
- Not valid for load and/or lock operations
-
HINT_SPEC_CACHE_RETRIEVE_MODE
Hint specifying how Hibernate should interact with the second level cache when it has the opportunity to retrieve data from the cache. The value must be aCacheRetrieveMode
. -
HINT_SPEC_CACHE_STORE_MODE
Hint specifying how Hibernate should interact with the second level cache when it has the opportunity to store data in the cache. The value must be aCacheStoreMode
.
-