Annotation Interface ReadQueryOptions


@Target(METHOD) @Retention(RUNTIME) public @interface ReadQueryOptions

Configures options that affect the execution of a database read operation. This annotation may be applied to:

  • a method with a StaticQuery or Jakarta Data jakarta.data.repository.Query annotation whose value member specifies a SELECT statement,
  • a method with a StaticNativeQuery annotation whose value member specifies a SQL operation which returns a result set, or
  • a Jakarta Data repository method annotated jakarta.data.repository.Find.

This annotation must be respected by an implementation of Jakarta Data backed by Jakarta Persistence.

Since:
4.0
See Also: