Class Hash

  • All Implemented Interfaces:
    Serializable

    public class Hash
    extends Object
    implements 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 Detail

      • FIND_BY_POST_ID

        public static final 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
      • setStemmed

        public void setStemmed​(String stemmed)
      • getStemmed

        public String getStemmed()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • normalizeHashtag

        public static String normalizeHashtag​(String hashtag)