Class RolePermission

java.lang.Object
com.alpaca.entity.RolePermission

@Entity public class RolePermission extends Object
Represents the association between a Role and a Permission.

This entity defines a many-to-many relationship between roles and permissions and is mapped to the "role_permissions" table in the database.

  • Field Details

    • id

      private UUID id
      Unique identifier for the RolePermission association. This value is automatically generated using a UUID strategy.
    • role

      private Role role
      The Role associated with this RolePermission. This field cannot be null.
    • permission

      private Permission permission
      The Permission associated with this RolePermission. This field cannot be null.
  • Constructor Details

    • RolePermission

      public RolePermission(Role role, Permission permission)
      Constructs an instance of a new RolePermission object with the specified attributes.
      Parameters:
      role - the Role associated with this RolePermission - must not be null
      permission - the Permission associated with this RolePermission - must not be null