Class TicketTarget

java.lang.Object
ubic.gemma.model.common.AbstractIdentifiable
ubic.gemma.model.common.auditAndSecurity.curation.TicketTarget
All Implemented Interfaces:
Identifiable

@Entity public class TicketTarget extends AbstractIdentifiable
A single target of a Ticket. A ticket can have many targets, of mixed types (Decision 2 of AUDIT_AS_WORKFLOW_RECCE.md).

targetId is a bare foreign key — intentionally NOT JPA-mapped to a polymorphic association. The (targetType, targetId) composite index supports the "open tickets for this entity" lookup without joining back through ticket.

Author:
paul
  • Constructor Details

    • TicketTarget

      public TicketTarget()
  • Method Details

    • getTicket

      public Ticket getTicket()
    • setTicket

      public void setTicket(Ticket ticket)
    • getTargetType

      public TicketTargetType getTargetType()
    • setTargetType

      public void setTargetType(TicketTargetType targetType)
    • getTargetId

      public Long getTargetId()
    • setTargetId

      public void setTargetId(Long targetId)
    • getStatus

      public TicketTargetStatus getStatus()
    • setStatus

      public void setStatus(TicketTargetStatus status)
    • getScreeningResult

      @Nullable public ScreeningResult getScreeningResult()
    • setScreeningResult

      public void setScreeningResult(@Nullable ScreeningResult screeningResult)
    • getScreeningResultReason

      @Nullable public String getScreeningResultReason()
    • setScreeningResultReason

      public void setScreeningResultReason(@Nullable String screeningResultReason)
    • 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)
      Description copied from class: AbstractIdentifiable
      Important note: Two objects with the same class and non-null ID must be considered equal. If one or both IDs are nulls, the rest of the state can be used to determine equality.
      Specified by:
      equals in class AbstractIdentifiable