Class ArticleContent
java.lang.Object
com.endurancetrio.data.common.model.entity.AuditableEntity
com.endurancetrio.data.common.model.entity.BaseEntity<Long>
com.endurancetrio.data.insight.model.entity.ArticleContent
- All Implemented Interfaces:
Serializable
The
ArticleContent entity represents localized content for an Article.
The ArticleContent's fields are defined as follows:
-
id: the unique identifier of theArticleContentthat is automatically generated and is the primary key. -
article: theArticlethat this content belongs to. -
locale: the locale code (e.g., "en" for English or "pt" for Portuguese). -
title: the title of theArticlein the given locale. -
subtitle: the optional subtitle of theArticlein the given locale. -
introText: the introductory HTML content of theArticlein the given locale. -
fullText: the optional full HTML content of theArticlein the given locale. -
metaTitle: the optional SEO meta title for theArticlein the given locale. -
metaDescription: the optional SEO meta description for theArticlein the given locale.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquality is based on the entity's identifier.getTitle()inthashCode()voidsetArticle(Article article) voidsetFullText(String fullText) voidsetIntroText(String introText) voidvoidsetMetaDescription(String metaDescription) voidsetMetaTitle(String metaTitle) voidsetSubtitle(String subtitle) voidtoString()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
-
ArticleContent
public ArticleContent()Default constructor for theArticleContententity.
-
-
Method Details
-
getArticle
-
setArticle
-
getLocale
-
setLocale
-
getTitle
-
setTitle
-
getSubtitle
-
setSubtitle
-
getIntroText
-
setIntroText
-
getFullText
-
setFullText
-
getMetaTitle
-
setMetaTitle
-
getMetaDescription
-
setMetaDescription
-
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
-