Class Fabric
java.lang.Object
com.needleandstitch.pavuk.model.Fabric
An entity class for fabric.
This class serves as a model for the fabric table in the database.
- Since:
- 15.12.2024
- Version:
- 1.0.0
- Author:
- Needle & Stitch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the set of colors associated with the fabric.getId()
Gets the unique identifier for the fabric.getImage()
Gets the image associated with the fabric.getName()
Gets the name of the fabric.void
Sets the set of colors associated with the fabric.void
Sets the unique identifier for the fabric.void
Sets the image associated with the fabric.void
Sets the name of the fabric.
-
Constructor Details
-
Fabric
public Fabric()Default constructor. -
Fabric
-
-
Method Details
-
getId
-
setId
Sets the unique identifier for the fabric.- Parameters:
id
- The fabric ID to set
-
getName
-
setName
Sets the name of the fabric.- Parameters:
name
- The name of the fabric to set
-
getImage
Gets the image associated with the fabric.- Returns:
- The image associated with the fabric
-
setImage
Sets the image associated with the fabric.- Parameters:
image
- The image to set for the fabric
-
getColors
-
setColors
-