Class ClothingItemPart
java.lang.Object
com.needleandstitch.pavuk.model.ClothingItemPart
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 Summary
ConstructorsConstructorDescriptionDefault constructor.ClothingItemPart
(ClothingItem clothingItem, Image image, Fabric fabric) Constructor for creating a clothing item part with specific clothing item, image, and fabric. -
Method Summary
Modifier and TypeMethodDescriptionGets the clothing item associated with this part.Gets the fabric used for this clothing item part.getId()
Gets the unique identifier of the clothing item part.getImage()
Gets the image associated with this clothing item part.void
setClothingItem
(ClothingItem clothingItem) Sets the clothing item associated with this part.void
Sets the fabric used for this clothing item part.void
Sets the unique identifier for the clothing item part.void
Sets the image associated with this clothing item part.
-
Constructor Details
-
ClothingItemPart
public ClothingItemPart()Default constructor. -
ClothingItemPart
Constructor for creating a clothing item part with specific clothing item, image, and fabric.- Parameters:
clothingItem
- The clothing item to associate with this partimage
- The image to associate with this partfabric
- The fabric to associate with this part
-
-
Method Details
-
getId
Gets the unique identifier of the clothing item part.- Returns:
- The clothing item part ID
-
setId
Sets the unique identifier for the clothing item part.- Parameters:
id
- The clothing item part ID to set
-
getClothingItem
Gets the clothing item associated with this part.- Returns:
- The clothing item
-
setClothingItem
Sets the clothing item associated with this part.- Parameters:
clothingItem
- The clothing item to set
-
getImage
-
setImage
Sets the image associated with this clothing item part.- Parameters:
image
- The image to set
-
getFabric
-
setFabric
Sets the fabric used for this clothing item part.- Parameters:
fabric
- The fabric to set
-