Class Color

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

@Entity public class Color extends Object
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 Details

    • Color

      public Color()
      Default constructor.
    • Color

      public Color(String hex)
      Constructor to create a color with a specified hex code.
      Parameters:
      hex - The hex code representing the color
  • Method Details

    • getId

      public Long getId()
      Gets the unique identifier for the color.
      Returns:
      The color ID
    • setId

      public void setId(Long id)
      Sets the unique identifier for the color.
      Parameters:
      id - The color ID to set
    • getHex

      public String getHex()
      Gets the hex code representing the color.
      Returns:
      The hex code of the color
    • setHex

      public void setHex(String hex)
      Sets the hex code representing the color.
      Parameters:
      hex - The hex code to set for the color