The following sample gets requested properties for involved party records that are associated with a project record, given the unique key of the project record.
readInvolvedsForProject
private InvolvedRepository involvedRepository;
private List<String> getPropertiesToRead() {
List<String> props = new List<String>();
props.add("uniqueKey");
props.add("contact");
props.add("project");
props.add("project.name");
props.add("contact.uniqueKey");
return props;
}
public void test_readInvolvedsForProject throws Exception {
// Search the involved records for a project
//in the following operation, "DISP_5941" is the unique key of the project record whose involved party records will be returned
List<Involved> involvedParties = involvedRepository.readInvolvedsForProject("DISP_5941",
getPropertiesToRead());
}