@Override
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }

    ChiTietGPLXClp chiTietGPLX = null;

    try {
      chiTietGPLX = (ChiTietGPLXClp) obj;
    } catch (ClassCastException cce) {
      return false;
    }

    long primaryKey = chiTietGPLX.getPrimaryKey();

    if (getPrimaryKey() == primaryKey) {
      return true;
    } else {
      return false;
    }
  }
  @Override
  public Object clone() {
    ChiTietGPLXClp clone = new ChiTietGPLXClp();

    clone.setId(getId());
    clone.setIdGPLX(getIdGPLX());
    clone.setSoGPLX(getSoGPLX());
    clone.setIdHangGPLX(getIdHangGPLX());
    clone.setIdNoiCapGPLX(getIdNoiCapGPLX());
    clone.setIdNoiCapGPLXNuocNgoai(getIdNoiCapGPLXNuocNgoai());
    clone.setNgayCapGPLX(getNgayCapGPLX());
    clone.setNgayTrungTuyen(getNgayTrungTuyen());
    clone.setNgayHetHan(getNgayHetHan());
    clone.setIdNoiHocLaiXe(getIdNoiHocLaiXe());
    clone.setIdNoiHocLaiXeNuocNgoai(getIdNoiHocLaiXeNuocNgoai());
    clone.setNamHocLaiXe(getNamHocLaiXe());
    clone.setNoiHocLaiXeNuocNgoai(getNoiHocLaiXeNuocNgoai());
    clone.setNoiHocLaiXe(getNoiHocLaiXe());
    clone.setNoiCapGPLXNuocNgoai(getNoiCapGPLXNuocNgoai());
    clone.setNoiCapGPLX(getNoiCapGPLX());
    clone.setNgayTao(getNgayTao());
    clone.setNgaySua(getNgaySua());
    clone.setNguoiTao(getNguoiTao());
    clone.setNguoiSua(getNguoiSua());

    return clone;
  }