Annotation Interface Data.Query

Enclosing class:
Data

@Target(METHOD) @Retention(SOURCE) public static @interface Data.Query
User supplied query.

Used in repository methods with query defined by annotation. This is the annotation to define the query. Query language depends on data.persistence-units.provider-type, e.g. it's JPQL for jakarta provider type.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The query.
  • Element Details

    • value

      String value
      The query.
      Returns:
      the query string