@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SubModelModel that = (SubModelModel) o;

        if (idSubModel != that.idSubModel) return false;
        if (subModel != null ? !subModel.equals(that.subModel) : that.subModel != null) return false;

        return true;
    }