Class Office

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

@Entity public class Office extends Object
The Office class is an entity that represents an office, which is a place where workers can manages Request requests.
  • Field Details

    • id

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

      @NonNull private @NonNull String name
      The name of this Office.
    • address

      @NonNull private @NonNull String address
      The address of this Office.
    • createdAt

      private Date createdAt
      The Date when this Office was created.
    • updatedAt

      private Date updatedAt
      The Date when this Office was last updated.
  • Constructor Details

    • Office

      public Office()
  • Method Details

    • equals

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

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