java.lang.Object
com.ubs.backend.classes.database.Tag

@Entity public class Tag extends Object
Dataclass to store a tag with its id and content
Since:
17.07.2021
Author:
Marc Andri Fuchs
  • Field Details

    • tagID

      private long tagID
      The ID of this Tag in the Database
      Since:
      17.07.2021
    • tag

      private String tag
      The Content of this Tag
      Since:
      17.07.2021
  • Constructor Details

    • Tag

      public Tag(String tag)
      Default Constructor
      Parameters:
      tag - the Content for the Tag
      Since:
      17.07.2021
    • Tag

      public Tag()
      no-args constructor
      Since:
      17.07.2021
  • Method Details

    • getTagID

      public long getTagID()
      Returns:
      the ID of this Tag
      Since:
      17.07.2021
    • setTagID

      public void setTagID(long tagID)
      Parameters:
      tagID - the new ID for this Tag
      Since:
      17.07.2021
    • getTag

      public String getTag()
      Returns:
      the Content of this Tag
      Since:
      17.07.2021
    • setTag

      public void setTag(String tag)
      Parameters:
      tag - the new Content for this Tag
      Since:
      17.07.2021
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      Since:
      17.07.2021
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Parameters:
      o -
      Returns:
      Since:
      17.07.2021
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Returns:
      Since:
      17.07.2021