Package org.hibernate.annotations

Annotation Type SqlFragmentAlias


  • @Target({})@Retention(RUNTIME)public @interfaceSqlFragmentAlias
    Defines an interpolated alias occurring in a SQLfilter condition. Aliases are interpolated where placeholders of the form{name} occur, wherename is the value specified byalias().

    It's usually necessary to specify only one ofentity() andtable() to uniquely identify the alias that should be interpolated.

    • Required Element Summary

      Required Elements 
      Modifier and TypeRequired ElementDescription
      Stringalias
      The alias within the fragment.
    • Optional Element Summary

      Optional Elements 
      Modifier and TypeOptional ElementDescription
      Class<?>entity
      The entity class associated with the alias.
      Stringtable
      The table corresponding to the alias.
    • Element Detail

      • 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