Package com.alpaca.entity
Class RolePermission
java.lang.Object
com.alpaca.entity.RolePermission
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 Summary
FieldsModifier and TypeFieldDescriptionprivate UUID
Unique identifier for the RolePermission association.private Permission
The Permission associated with this RolePermission.private Role
The Role associated with this RolePermission. -
Constructor Summary
ConstructorsConstructorDescriptionRolePermission
(Role role, Permission permission) Constructs an instance of a new RolePermission object with the specified attributes. -
Method Summary
-
Field Details
-
id
Unique identifier for the RolePermission association. This value is automatically generated using a UUID strategy. -
role
The Role associated with this RolePermission. This field cannot be null. -
permission
The Permission associated with this RolePermission. This field cannot be null.
-
-
Constructor Details
-
RolePermission
Constructs an instance of a new RolePermission object with the specified attributes.- Parameters:
role
- the Role associated with this RolePermission - must not be nullpermission
- the Permission associated with this RolePermission - must not be null
-