Annotation Interface SqlFragmentAlias


@Target({}) @Retention(RUNTIME) public @interface SqlFragmentAlias
Defines an interpolated alias occurring in a SQL filter condition. Aliases are interpolated where placeholders of the form {name} occur, where name is the value specified by alias().

It's usually necessary to specify only one of entity() and table() to uniquely identify the alias that should be interpolated.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The alias within the fragment.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The entity class associated with the alias.
    The table corresponding to the alias.
  • Element Details

    • alias

      String alias
      The alias within the fragment.
    • table

      String table
      The table corresponding to the alias.
      Default:
      ""
    • entity

      Class<?> entity
      The entity class associated with the alias.
      Default:
      void.class