Class Hash

  • All Implemented Interfaces:
    java.io.Serializable

    public class Hash
    extends java.lang.Object
    implements java.io.Serializable
    This entity class contains information about a Hashtag present in a Post.
    Since:
    6.1.0
    Version:
    $Revision: 13757 $ $Date: 2011-10-14 11:52:52 -0300 (Fri, 14 Oct 2011) $
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String FIND_BY_POST_ID
      Named Query that finds a Hash based on a postId specified by parameter postId.
      protected HashPK id  
    • Constructor Summary

      Constructors 
      Constructor Description
      Hash()
      Constructor for JPA.
      Hash​(HashPK hashPK)  
    • Field Detail

      • FIND_BY_POST_ID

        public static final java.lang.String FIND_BY_POST_ID
        Named Query that finds a Hash based on a postId specified by parameter postId.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Hash

        public Hash()
        Constructor for JPA.
        Since:
        6.1.0
      • Hash

        public Hash​(HashPK hashPK)
    • Method Detail

      • getId

        public HashPK getId()
        Returns the object-Id (composite key HashPK)
        Returns:
        Since:
        6.1.0
      • setId

        public void setId​(HashPK id)
        Sets the object-Id (composite key HashPK)
        Since:
        6.1.0
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • setStemmed

        public void setStemmed​(java.lang.String stemmed)
      • getStemmed

        public java.lang.String getStemmed()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • normalizeHashtag

        public static java.lang.String normalizeHashtag​(java.lang.String hashtag)