Class ClothingItem
java.lang.Object
com.needleandstitch.pavuk.model.ClothingItem
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 Summary
ConstructorsConstructorDescriptionDefault constructor.ClothingItem
(String name, String description, BigDecimal price, Set<Image> images, Category category) Constructor for creating a clothing item with specified details. -
Method Summary
Modifier and TypeMethodDescriptionGets the category of the clothing item.Gets the description of the clothing item.getId()
Gets the unique identifier of the clothing item.Gets the set of images associated with the clothing item.getName()
Gets the name of the clothing item.getPrice()
Gets the price of the clothing item.void
setCategory
(Category category) Sets the category of the clothing item.void
setDescription
(String description) Sets the description of the clothing item.void
Sets the unique identifier for the clothing item.void
Sets the set of images associated with the clothing item.void
Sets the name of the clothing item.void
setPrice
(BigDecimal price) Sets the price of the clothing item.
-
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 itemdescription
- A detailed description of the clothing itemprice
- The price of the clothing itemimages
- A set of images associated with the clothing itemcategory
- The category to which the clothing item belongs
-
-
Method Details
-
getId
-
setId
Sets the unique identifier for the clothing item.- Parameters:
id
- The clothing item ID to set
-
getName
-
setName
Sets the name of the clothing item.- Parameters:
name
- The clothing item name to set
-
getDescription
Gets the description of the clothing item.- Returns:
- The clothing item description
-
setDescription
Sets the description of the clothing item.- Parameters:
description
- The clothing item description to set
-
getPrice
-
setPrice
Sets the price of the clothing item.- Parameters:
price
- The clothing item price to set
-
getImages
-
setImages
-
getCategory
Gets the category of the clothing item.- Returns:
- The clothing item's category
-
setCategory
Sets the category of the clothing item.- Parameters:
category
- The category to associate with the clothing item
-