Class Role
java.lang.Object
com.needleandstitch.pavuk.model.Role
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
Role
public Role()Default constructor. -
Role
Constructor to create a new role with the specified name.- Parameters:
name
- The name of the role
-
-
Method Details
-
getId
-
setId
Sets the unique identifier for the role.- Parameters:
id
- The role ID to set
-
getName
-
setName
-