Annotation Interface JpqlRowLevelPolicy


Defines JPQL row-level policy in annotated row level role (see RowLevelRole). Multiple JpqlRowLevelPolicy annotations may be placed on a single method. JpqlRowLevelPolicy annotation may present on multiple methods of the same class. Annotated method may have any name and return type.

Example:

 @RowLevelRole(name = "My Role", code = "myRole")
 public interface MyRole {

     @JpqlRowLevelPolicy(entityClass = TestOrder.class,
             join = "join e.customer c",
             where = "c.status = 'active'")
     void jpqlPolicies();
 }
 
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • entityClass

      Class<?> entityClass
    • where

      String where
    • join

      String join
      Default:
      ""