Class Team
java.lang.Object
com.endurancetrio.data.common.model.entity.AuditableEntity
com.endurancetrio.data.common.model.entity.BaseEntity<Long>
com.endurancetrio.data.competitor.model.entity.Team
- All Implemented Interfaces:
Serializable
The
Team entity represents a collective competitor (club or team).
The Team's fields are defined as follows:
-
id: the unique identifier of theTeamthat is automatically generated and is the primary key. name: the canonical name of theTeam.-
shortName: the abbreviated or short name for theTeam(e.g., initials like "SC" for a sports club). city: the city where theTeamis based.county: the county where theTeamis based.district: the district where theTeamis based.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquality is based on the entity's identifier.getCity()inthashCode()voidvoidvoidsetDistrict(String district) voidsetFullName(String fullName) voidsetShortName(String shortName) 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
-
Team
public Team()
-
-
Method Details
-
getFullName
-
setFullName
-
getShortName
-
setShortName
-
getCity
-
setCity
-
getCounty
-
setCounty
-
getDistrict
-
setDistrict
-
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
-