All Implemented Interfaces:
Serializable

@Entity(name="Article") public class Article extends BaseEntity<Long>
The Article entity represents an insight article in the Insights section.

The Article's fields are defined as follows:

See Also:
  • Constructor Details

    • Article

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

    • addContent

      public void addContent(ArticleContent content)
      Adds an ArticleContent to the Article. This method also sets the Article reference in the ArticleContent.
      Parameters:
      content - the ArticleContent to be added
    • removeContent

      public void removeContent(ArticleContent content)
      Removes an ArticleContent from the Article. This method also removes the Article reference from the ArticleContent.
      Parameters:
      content - the ArticleContent to be removed
    • getSlug

      public String getSlug()
    • setSlug

      public void setSlug(String slug)
    • getAuthor

      public Author getAuthor()
    • setAuthor

      public void setAuthor(Author author)
    • getPublishedDate

      public LocalDateTime getPublishedDate()
    • setPublishedDate

      public void setPublishedDate(LocalDateTime publishedDate)
    • getFeaturedImage

      public String getFeaturedImage()
    • setFeaturedImage

      public void setFeaturedImage(String featuredImage)
    • getFeaturedImageWidth

      public Integer getFeaturedImageWidth()
    • setFeaturedImageWidth

      public void setFeaturedImageWidth(Integer featuredImageWidth)
    • getFeaturedImageHeight

      public Integer getFeaturedImageHeight()
    • setFeaturedImageHeight

      public void setFeaturedImageHeight(Integer featuredImageHeight)
    • getContents

      public Set<ArticleContent> getContents()
    • setContents

      public void setContents(Set<ArticleContent> contents)
    • getRelatedEvents

      public Set<Event> getRelatedEvents()
    • setRelatedEvents

      public void setRelatedEvents(Set<Event> relatedEvents)
    • 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