Class Author
java.lang.Object
com.endurancetrio.data.common.model.entity.AuditableEntity
com.endurancetrio.data.common.model.entity.BaseEntity<Long>
com.endurancetrio.data.insight.model.entity.Author
- All Implemented Interfaces:
Serializable
The
Author entity represents an author profile for the Insights section.
The Author's fields are defined as follows:
-
id: the unique identifier of theAuthorthat is automatically generated and is the primary key. -
knownName: the display name of theAuthor, which must be unique. -
bio: an optional biography of theAuthor. -
profileFileName: the optional file name of theAuthor's profile image. -
athlete: the optionalAthleteassociated with theAuthor.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquality is based on the entity's identifier.getBio()inthashCode()voidsetAthlete(Athlete athlete) voidvoidsetKnownName(String knownName) voidsetProfileFileName(String profileFileName) 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
-
Author
public Author()
-
-
Method Details
-
getKnownName
-
setKnownName
-
getBio
-
setBio
-
getProfileFileName
-
setProfileFileName
-
getAthlete
-
setAthlete
-
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
-