Class Citizen

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

@Entity public class Citizen extends Object
The Citizen class is an entity that represents a citizen. It is used as a white list for the users that can access the system.
  • Field Details

    • id

      private UUID id
      The unique identifier of this Citizen.
    • fiscalCode

      @NonNull private @NonNull String fiscalCode
      The fiscal code of this Citizen.
    • name

      @NonNull private @NonNull String name
      The name of this Citizen.
    • surname

      @NonNull private @NonNull String surname
      The surname of this Citizen.
    • cityOfBirth

      @NonNull private @NonNull String cityOfBirth
      The city of birth of this Citizen.
    • dateOfBirth

      @NonNull private @NonNull Date dateOfBirth
      The date of birth of this Citizen.
    • healthCardNumber

      @NonNull private @NonNull String healthCardNumber
      The health card number of this Citizen.
    • createdAt

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

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

    • Citizen

      public Citizen()
  • Method Details

    • equals

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

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