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