Skip to content

Commit

Permalink
#175: restore organization/people composite - remove 'position-stub'
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Nelson committed Jan 30, 2020
1 parent 98aff98 commit 0c26894
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 132 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,10 @@

import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_EMPTY;

import java.util.List;

import edu.tamu.scholars.middleware.discovery.model.Common;
import edu.tamu.scholars.middleware.graphql.model.AbstractNestedDocument;
import io.leangen.graphql.annotations.types.GraphQLType;
import org.springframework.data.solr.core.mapping.Indexed;
import org.springframework.data.solr.core.mapping.SolrDocument;

import com.fasterxml.jackson.annotation.JsonInclude;

import edu.tamu.scholars.middleware.discovery.annotation.CollectionSource;
import edu.tamu.scholars.middleware.discovery.annotation.NestedMultiValuedProperty;
import edu.tamu.scholars.middleware.discovery.annotation.NestedObject;
import edu.tamu.scholars.middleware.discovery.annotation.NestedObject.Reference;
import edu.tamu.scholars.middleware.discovery.annotation.PropertySource;

import edu.tamu.scholars.middleware.graphql.inert.model.position.Organization;
import io.leangen.graphql.annotations.GraphQLIgnore;

@GraphQLIgnore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import edu.tamu.scholars.middleware.graphql.model.organization.AwardOrHonorGiven;
import edu.tamu.scholars.middleware.graphql.model.organization.AwardOrHonorReceived;
import edu.tamu.scholars.middleware.graphql.model.organization.OrganizationForTraining;
import edu.tamu.scholars.middleware.graphql.model.organization.People;
import edu.tamu.scholars.middleware.graphql.model.Person;
import edu.tamu.scholars.middleware.graphql.model.organization.HasSubOrganization;
import edu.tamu.scholars.middleware.graphql.model.organization.OrganizationWithin;
import edu.tamu.scholars.middleware.graphql.model.organization.LeadOrganizationOf;
Expand Down Expand Up @@ -67,7 +67,7 @@ public class Organization extends AbstractNestedDocument {

private List<OrganizationForTraining> organizationForTraining;

private List<People> people;
private List<Person> people;

private List<HasSubOrganization> hasSubOrganizations;

Expand Down Expand Up @@ -214,11 +214,11 @@ public void setOrganizationForTraining(List<OrganizationForTraining> organizatio
this.organizationForTraining = organizationForTraining;
}

public List<People> getPeople() {
public List<Person> getPeople() {
return people;
}

public void setPeople(List<People> people) {
public void setPeople(List<Person> people) {
this.people = people;
}

Expand Down

This file was deleted.

8 changes: 4 additions & 4 deletions src/main/resources/graphql/composites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- name: publications
type: Document

#- type: Organization
# references:
# - name: people
# type: Person
- type: Organization
references:
- name: people
type: Person

0 comments on commit 0c26894

Please sign in to comment.