@Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Laptops)) {
            return false;
        }
        Laptops other = (Laptops) object;
        if ((this.idLaptop == null && other.idLaptop != null) || (this.idLaptop != null && !this.idLaptop.equals(other.idLaptop))) {
            return false;
        }
        return true;
    }