Package io.jmix.security.role.annotation
Annotation Interface JpqlRowLevelPolicy
@Retention(RUNTIME)
@Target(METHOD)
@Repeatable(JpqlRowLevelPolicyContainer.class)
public @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
-
Optional Element Summary