Class Category

java.lang.Object
it.univr.passportease.entity.Category

@Entity public class Category extends Object
The Category entity that represents a category of a Citizen.
  • Field Details

    • id

      private UUID id
      The unique identifier of this Category.
    • name

      @NonNull private @NonNull String name
      The name of this Category.
    • description

      private String description
      The description of this Category.
    • createdAt

      private Date createdAt
      The Date of creation of this Category.
    • updatedAt

      private Date updatedAt
      The Date of last update of this Category.
  • Constructor Details

    • Category

      public Category()
  • Method Details

    • equals

      public final boolean equals(Object o)
      Equals method for this Category.
      Overrides:
      equals in class Object
      Parameters:
      o - The object to compare with this Category.
      Returns:
      true if the given object is an instance of Category and has the same UUID as this Category, false otherwise.
    • hashCode

      public final int hashCode()
      Hash code method for this Category.
      Overrides:
      hashCode in class Object
      Returns:
      The hash code of this Category.