Class ClothingItem

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

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

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

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

    • ClothingItem

      public ClothingItem()
      Default constructor.
    • ClothingItem

      public ClothingItem(String name, String description, BigDecimal price, Set<Image> images, Category category)
      Constructor for creating a clothing item with specified details.
      Parameters:
      name - The name of the clothing item
      description - A detailed description of the clothing item
      price - The price of the clothing item
      images - A set of images associated with the clothing item
      category - The category to which the clothing item belongs
  • Method Details

    • getId

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

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

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

      public void setName(String name)
      Sets the name of the clothing item.
      Parameters:
      name - The clothing item name to set
    • getDescription

      public String getDescription()
      Gets the description of the clothing item.
      Returns:
      The clothing item description
    • setDescription

      public void setDescription(String description)
      Sets the description of the clothing item.
      Parameters:
      description - The clothing item description to set
    • getPrice

      public BigDecimal getPrice()
      Gets the price of the clothing item.
      Returns:
      The clothing item price
    • setPrice

      public void setPrice(BigDecimal price)
      Sets the price of the clothing item.
      Parameters:
      price - The clothing item price to set
    • getImages

      public Set<Image> getImages()
      Gets the set of images associated with the clothing item.
      Returns:
      The set of images
    • setImages

      public void setImages(Set<Image> images)
      Sets the set of images associated with the clothing item.
      Parameters:
      images - The images to associate with the clothing item
    • getCategory

      public Category getCategory()
      Gets the category of the clothing item.
      Returns:
      The clothing item's category
    • setCategory

      public void setCategory(Category category)
      Sets the category of the clothing item.
      Parameters:
      category - The category to associate with the clothing item