Class ArticleContent

All Implemented Interfaces:
Serializable

@Entity(name="ArticleContent") public class ArticleContent extends BaseEntity<Long>
The ArticleContent entity represents localized content for an Article.

The ArticleContent's fields are defined as follows:

  • id : the unique identifier of the ArticleContent that is automatically generated and is the primary key.
  • article : the Article that this content belongs to.
  • locale : the locale code (e.g., "en" for English or "pt" for Portuguese).
  • title : the title of the Article in the given locale.
  • subtitle : the optional subtitle of the Article in the given locale.
  • introText : the introductory HTML content of the Article in the given locale.
  • fullText : the optional full HTML content of the Article in the given locale.
  • metaTitle : the optional SEO meta title for the Article in the given locale.
  • metaDescription : the optional SEO meta description for the Article in the given locale.
See Also:
  • Constructor Details

    • ArticleContent

      public ArticleContent()
      Default constructor for the ArticleContent entity.
  • Method Details

    • getArticle

      public Article getArticle()
    • setArticle

      public void setArticle(Article article)
    • getLocale

      public String getLocale()
    • setLocale

      public void setLocale(String locale)
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String title)
    • getSubtitle

      public String getSubtitle()
    • setSubtitle

      public void setSubtitle(String subtitle)
    • getIntroText

      public String getIntroText()
    • setIntroText

      public void setIntroText(String introText)
    • getFullText

      public String getFullText()
    • setFullText

      public void setFullText(String fullText)
    • getMetaTitle

      public String getMetaTitle()
    • setMetaTitle

      public void setMetaTitle(String metaTitle)
    • getMetaDescription

      public String getMetaDescription()
    • setMetaDescription

      public void setMetaDescription(String metaDescription)
    • equals

      public boolean equals(Object o)
      Description copied from class: BaseEntity
      Equality 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:
      equals in class BaseEntity<Long>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BaseEntity<Long>
    • toString

      public String toString()
      Overrides:
      toString in class Object