Beispiel #1
0
  @Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }

    if (!(obj instanceof LFQuestionClp)) {
      return false;
    }

    LFQuestionClp lfQuestion = (LFQuestionClp) obj;

    long primaryKey = lfQuestion.getPrimaryKey();

    if (getPrimaryKey() == primaryKey) {
      return true;
    } else {
      return false;
    }
  }
Beispiel #2
0
  @Override
  public Object clone() {
    LFQuestionClp clone = new LFQuestionClp();

    clone.setId(getId());
    clone.setCategoryId(getCategoryId());
    clone.setTitle(getTitle());
    clone.setDescription(getDescription());
    clone.setExplanationText(getExplanationText());
    clone.setRightAnswerText(getRightAnswerText());
    clone.setWrongAnswerText(getWrongAnswerText());
    clone.setForceCorrectCount(getForceCorrectCount());
    clone.setCaseSensitive(getCaseSensitive());
    clone.setQuestionType(getQuestionType());
    clone.setCourseId(getCourseId());
    clone.setArrangementIndex(getArrangementIndex());

    return clone;
  }