Class Tailor

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

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

    • Tailor

      public Tailor()
      Default constructor.
    • Tailor

      public Tailor(User user, int yearsOfExperience)
      Constructor to create a new tailor.
      Parameters:
      user - The associated user for the tailor
      yearsOfExperience - The number of years of experience the tailor has
  • Method Details

    • getId

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

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

      public User getUser()
      Gets the associated user for the tailor.
      Returns:
      The user associated with the tailor
    • setUser

      public void setUser(User user)
      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