Package it.univr.passportease.entity
Class CitizenCategory
java.lang.Object
it.univr.passportease.entity.CitizenCategory
The
CitizenCategory
entity that represents a category of a Citizen
.-
Field Summary
Modifier and TypeFieldDescriptionprivate @NonNull Category
TheCategory
of thisCitizenCategory
.private @NonNull Citizen
TheCitizen
of thisCitizenCategory
.private Date
The date when thisCitizenCategory
was created.private UUID
The unique identifier of thisCitizenCategory
.private Date
The date when thisCitizenCategory
was last updated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Equals method for thisCitizenCategory
.final int
hashCode()
Hash code method for thisCitizenCategory
.
-
Field Details
-
id
The unique identifier of thisCitizenCategory
. -
citizen
TheCitizen
of thisCitizenCategory
. -
category
TheCategory
of thisCitizenCategory
. -
createdAt
The date when thisCitizenCategory
was created. -
updatedAt
The date when thisCitizenCategory
was last updated.
-
-
Constructor Details
-
CitizenCategory
public CitizenCategory()
-
-
Method Details
-
equals
Equals method for thisCitizenCategory
.- Overrides:
equals
in classObject
- Parameters:
o
- The object to compare with thisCitizenCategory
.- Returns:
true
if the given object is an instance ofCitizenCategory
and has the sameUUID
as thisCitizenCategory
,false
otherwise.
-
hashCode
public final int hashCode()Hash code method for thisCitizenCategory
.- Overrides:
hashCode
in classObject
- Returns:
- The hash code of this
CitizenCategory
.
-