Package com.alpaca.entity
Class Permission
java.lang.Object
com.alpaca.entity.Permission
Represents a Permission entity in the system. This entity is used to manage user permissions and
is mapped to the "permissions" table in the database.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate UUID
Unique identifier for the Permission.private String
The name of the Permission.private Set
<RolePermission> -
Constructor Summary
ConstructorsConstructorDescriptionPermission
(String permissionName) Constructs an instance of a new Permission object with the specified attributes. -
Method Summary
-
Field Details
-
id
Unique identifier for the Permission. This value is automatically generated using a UUID strategy. -
permissionName
The name of the Permission. This field is unique and cannot be null. -
rolePermissions
-
-
Constructor Details
-
Permission
Constructs an instance of a new Permission object with the specified attributes. The generated object is ready to be used and stored in the database.- Parameters:
permissionName
- Name of the Permission - must not be null
-
-
Method Details