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