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

        TitleCompositeId that = (TitleCompositeId) o;

        if (!id.equals(that.id)) return false;
        if (person != null ? !person.equals(that.person) : that.person != null) return false;

        return true;
    }