Class CompositeRoleEntity

java.lang.Object
org.keycloak.models.jpa.entities.CompositeRoleEntity

@Entity public class CompositeRoleEntity extends Object
Manage compmosite role relations. This used to be a @ManyToMany relation in RoleEntity, and before that there was a native query which lead to stale entities. After those attempts, this is now a separate table that avoids iterating over a lot of parents their entries by applying a simple JPA deletion.
  • Constructor Details

    • CompositeRoleEntity

      public CompositeRoleEntity()
    • CompositeRoleEntity

      public CompositeRoleEntity(RoleEntity parentRole, RoleEntity childRole)
  • Method Details

    • getParentRole

      public RoleEntity getParentRole()
    • setParentRole

      public void setParentRole(RoleEntity parentRole)
    • getChildRole

      public RoleEntity getChildRole()
    • setChildRole

      public void setChildRole(RoleEntity childRole)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object