Class Permission

java.lang.Object
com.alpaca.entity.Permission

@Entity public class Permission extends Object
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 Details

    • id

      private UUID id
      Unique identifier for the Permission. This value is automatically generated using a UUID strategy.
    • permissionName

      private String permissionName
      The name of the Permission. This field is unique and cannot be null.
    • rolePermissions

      private Set<RolePermission> rolePermissions
  • Constructor Details

    • Permission

      public Permission(String permissionName)
      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