Annotation Type WhereJoinTable


  • @Target({TYPE,METHOD,FIELD})
    @Retention(RUNTIME)
    public @interface WhereJoinTable
    Specifies a restriction written in native SQL to add to the generated SQL when querying the join table of a collection.

    For example, @Where("deleted = false") could be used to hide associations which have been soft-deleted from an association table.

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String clause
      A predicate, written in native SQL.
    • Element Detail

      • clause

        String clause
        A predicate, written in native SQL.