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

        Title title = (Title) o;

        if (id != null ? !id.equals(title.id) : title.id != null) return false;
        if (!name.equals(title.name)) return false;

        return true;
    }