Class Category

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

@Entity public class Category extends Object
An entity class for clothing item category.

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

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

    • Category

      public Category()
      Default constructor.
    • Category

      public Category(String name)
      Constructor for creating a category with a name.
      Parameters:
      name - The name of the category
  • Method Details

    • getId

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

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

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

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