Class Color
java.lang.Object
com.needleandstitch.pavuk.model.Color
An entity class for color.
This class serves as a model for the color table in the database.
- Since:
- 15.12.2024
- Version:
- 1.0.0
- Author:
- Needle & Stitch
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Color
public Color()Default constructor. -
Color
Constructor to create a color with a specified hex code.- Parameters:
hex
- The hex code representing the color
-
-
Method Details
-
getId
-
setId
Sets the unique identifier for the color.- Parameters:
id
- The color ID to set
-
getHex
-
setHex
Sets the hex code representing the color.- Parameters:
hex
- The hex code to set for the color
-