Example #1
0
  @Override
  public Object clone() {
    ItemSubjectClp clone = new ItemSubjectClp();

    clone.setItemId(getItemId());
    clone.setSubjectId(getSubjectId());

    return clone;
  }
Example #2
0
  @Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }

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

    ItemSubjectClp itemSubject = (ItemSubjectClp) obj;

    ItemSubjectPK primaryKey = itemSubject.getPrimaryKey();

    if (getPrimaryKey().equals(primaryKey)) {
      return true;
    } else {
      return false;
    }
  }