Class Organizer
java.lang.Object
com.endurancetrio.data.common.model.entity.AuditableEntity
com.endurancetrio.data.common.model.entity.BaseEntity<Long>
com.endurancetrio.data.event.model.entity.Organizer
- All Implemented Interfaces:
Serializable
The
Organizer entity represents a single organizer of an endurance sport Event.
The Organizer's fields are defined as follows:
-
id: the unique identifier of theOrganizerthat is automatically generated and is the primary key. name: the name or designation of theOrganizer.-
district: the district of theOrganizerheadquarters. -
county: the county of theOrganizerheadquarters. city: the city of theOrganizerheadquarters.-
organizerType: theOrganizerTypeused to classify the type ofevent'sOrganizer.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquality is based on the entity's identifier.getCity()getName()inthashCode()voidvoidvoidsetDistrict(String district) voidvoidsetOrganizerType(OrganizerType organizerType) toString()Methods inherited from class com.endurancetrio.data.common.model.entity.BaseEntity
getId, setIdMethods inherited from class com.endurancetrio.data.common.model.entity.AuditableEntity
getCreatedAt, getUpdatedAt, getVersion
-
Constructor Details
-
Organizer
public Organizer()Default constructor for theOrganizerentity.
-
-
Method Details
-
getName
-
setName
-
getDistrict
-
setDistrict
-
getCounty
-
setCounty
-
getCity
-
setCity
-
getOrganizerType
-
setOrganizerType
-
equals
Description copied from class:BaseEntityEquality is based on the entity's identifier. Two entities are considered equal if they are of the same class and have the same non-null identifier.If the ID is null, we treat it as a transient (new) object. Transient objects are only equal if they are the exact same instance.
- Overrides:
equalsin classBaseEntity<Long>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseEntity<Long>
-
toString
-