@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 Bed)) {
            return false;
        }
        Bed other = (Bed) object;
        if ((this.bedNo == null && other.bedNo != null) || (this.bedNo != null && !this.bedNo.equals(other.bedNo))) {
            return false;
        }
        return true;
    }