Class ClothingItemPart

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

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

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

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

    • ClothingItemPart

      public ClothingItemPart()
      Default constructor.
    • ClothingItemPart

      public ClothingItemPart(ClothingItem clothingItem, Image image, Fabric fabric)
      Constructor for creating a clothing item part with specific clothing item, image, and fabric.
      Parameters:
      clothingItem - The clothing item to associate with this part
      image - The image to associate with this part
      fabric - The fabric to associate with this part
  • Method Details

    • getId

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

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

      public ClothingItem getClothingItem()
      Gets the clothing item associated with this part.
      Returns:
      The clothing item
    • setClothingItem

      public void setClothingItem(ClothingItem clothingItem)
      Sets the clothing item associated with this part.
      Parameters:
      clothingItem - The clothing item to set
    • getImage

      public Image getImage()
      Gets the image associated with this clothing item part.
      Returns:
      The image
    • setImage

      public void setImage(Image image)
      Sets the image associated with this clothing item part.
      Parameters:
      image - The image to set
    • getFabric

      public Fabric getFabric()
      Gets the fabric used for this clothing item part.
      Returns:
      The fabric
    • setFabric

      public void setFabric(Fabric fabric)
      Sets the fabric used for this clothing item part.
      Parameters:
      fabric - The fabric to set