Class BibRefAnnotation

java.lang.Object
ubic.gemma.model.common.AbstractIdentifiable
ubic.gemma.model.common.description.BibRefAnnotation
All Implemented Interfaces:
Identifiable
Direct Known Subclasses:
Keyword, MedicalSubjectHeading

@Entity public abstract class BibRefAnnotation extends AbstractIdentifiable
Base class for Keyword and MedicalSubjectHeading; the @Indexed annotation lives on the concrete subclasses. The term field is the only Lucene-indexed property in the hierarchy.
  • Constructor Details

    • BibRefAnnotation

      public BibRefAnnotation()
  • Method Details

    • getId

      @DocumentId public Long getId()
      Description copied from interface: Identifiable
      Obtain the identifier of the object.
      Specified by:
      getId in interface Identifiable
      Overrides:
      getId in class AbstractIdentifiable
    • getIsMajorTopic

      public Boolean getIsMajorTopic()
    • setIsMajorTopic

      public void setIsMajorTopic(Boolean isMajorTopic)
    • getTerm

      @FullTextField public String getTerm()
    • setTerm

      public void setTerm(String term)
    • hashCode

      public int hashCode()
      Description copied from class: AbstractIdentifiable
      Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.
      Specified by:
      hashCode in class AbstractIdentifiable
    • equals

      public boolean equals(Object object)
      Returns true if the argument is an BibRefAnnotation instance and all identifiers for this entity equal the identifiers of the argument entity. Returns false otherwise.
      Specified by:
      equals in class AbstractIdentifiable