Class Role

java.lang.Object
com.needleandstitch.pavuk.model.Role

@Entity public class Role extends Object
An entity class for role.

This class serves as a model for the role table in the database.

Since:
15.12.2024
Version:
1.0.0
Author:
Needle & Stitch
  • Constructor Details

    • Role

      public Role()
      Default constructor.
    • Role

      public Role(String name)
      Constructor to create a new role with the specified name.
      Parameters:
      name - The name of the role
  • Method Details

    • getId

      public Long getId()
      Gets the unique identifier for the role.
      Returns:
      The role ID
    • setId

      public void setId(Long id)
      Sets the unique identifier for the role.
      Parameters:
      id - The role ID to set
    • getName

      public String getName()
      Gets the name of the role.
      Returns:
      The role name
    • setName

      public void setName(String name)
      Sets the name of the role.
      Parameters:
      name - The role name to set