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
FieldsModifier and TypeFieldDescriptionprivate @NonNull CategoryTheCategoryof thisCitizenCategory.private @NonNull CitizenTheCitizenof thisCitizenCategory.private DateThe date when thisCitizenCategorywas created.private UUIDThe unique identifier of thisCitizenCategory.private DateThe date when thisCitizenCategorywas last updated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanEquals method for thisCitizenCategory.final inthashCode()Hash code method for thisCitizenCategory.
-
Field Details
-
id
The unique identifier of thisCitizenCategory. -
citizen
TheCitizenof thisCitizenCategory. -
category
TheCategoryof thisCitizenCategory. -
createdAt
The date when thisCitizenCategorywas created. -
updatedAt
The date when thisCitizenCategorywas last updated.
-
-
Constructor Details
-
CitizenCategory
public CitizenCategory()
-
-
Method Details
-
equals
Equals method for thisCitizenCategory.- Overrides:
equalsin classObject- Parameters:
o- The object to compare with thisCitizenCategory.- Returns:
trueif the given object is an instance ofCitizenCategoryand has the sameUUIDas thisCitizenCategory,falseotherwise.
-
hashCode
public final int hashCode()Hash code method for thisCitizenCategory.- Overrides:
hashCodein classObject- Returns:
- The hash code of this
CitizenCategory.
-