Stream: implementers
Topic: ISearchBuilder Question
Neil Lott (Dec 24 2020 at 01:19):
Hi All, I'm migrating from 4.1.0 to 5.2.0 and I'm noticing this code doesn't compile anymore and I'm not finding any examples to guide me. Would someone assist how I can retrieve the ISearchBuilder or point me to the relevant docs. Specifically the myDaoRegistry.getResourceDao(Observation.class).newSearchBuilder() -- the .newSearchBuilder() method no longer exists.
@Autowired
private DaoRegistry myDaoRegistry;
....
ISearchBuilder searchBuilder = myDaoRegistry.getResourceDao(Observation.class).newSearchBuilder();
List<IBaseResource> observationsLoaded = new ArrayList<>();
List<Long> observationResourceIds = links.stream().map(ResourceTable::getId).distinct().collect(Collectors.toList());
searchBuilder.loadResourcesByPid(observationResourceIds, new ArrayList<>(), observationsLoaded, false, theRequestDetails);
Lloyd McKenzie (Dec 24 2020 at 02:04):
Questions related to HAPI are best raised here: #hapi
Last updated: Apr 12 2022 at 19:14 UTC