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