Class Tailor
java.lang.Object
com.needleandstitch.pavuk.model.Tailor
An entity class for tailor.
This class serves as a model for the tailor table in the database.
- Since:
- 15.12.2024
- Version:
- 1.0.0
- Author:
- Needle & Stitch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()
Gets the unique identifier for the tailor.getUser()
Gets the associated user for the tailor.int
Gets the number of years of experience the tailor has.void
Sets the unique identifier for the tailor.void
Sets the associated user for the tailor.void
setYearsOfExperience
(int yearsOfExperience) Sets the number of years of experience the tailor has.
-
Constructor Details
-
Tailor
public Tailor()Default constructor. -
Tailor
Constructor to create a new tailor.- Parameters:
user
- The associated user for the tailoryearsOfExperience
- The number of years of experience the tailor has
-
-
Method Details
-
getId
-
setId
Sets the unique identifier for the tailor.- Parameters:
id
- The tailor ID to set
-
getUser
Gets the associated user for the tailor.- Returns:
- The user associated with the tailor
-
setUser
Sets the associated user for the tailor.- Parameters:
user
- The user to set
-
getYearsOfExperience
public int getYearsOfExperience()Gets the number of years of experience the tailor has.- Returns:
- The years of experience
-
setYearsOfExperience
public void setYearsOfExperience(int yearsOfExperience) Sets the number of years of experience the tailor has.- Parameters:
yearsOfExperience
- The years of experience to set
-