@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DtlPembelianPK other = (DtlPembelianPK) obj;
		if (barang == null) {
			if (other.barang != null)
				return false;
		} else if (!barang.equals(other.barang))
			return false;
		if (pembelianId == null) {
			if (other.pembelianId != null)
				return false;
		} else if (!pembelianId.equals(other.pembelianId))
			return false;
		return true;
	}