The Model: Two Levels Author with (one:many) Books
What i try to acheive is to fetch lazy from backend when user scrolls. This works like a charm
with my FilterablePageableDataProvider< T extends AbstractDPSClient> extends AbstractBackEndDataProvider<Author, String>
Paging/sorting/filtering works just fine BUT for a flat structure.
I try to use the AbstractBackEndHierarchicalDataProvider but the design for this seems to be to only fetch Children Lazily, i have
the opposite issue. The Children already exists on the parents BUT i want to page fetch as user scrolls.
The
Stream fetchFromBackEnd(Query<Author, String> query);
Does not exist on the AbstractBackEndHierarchicalDataProvider only
**Stream<DisplayVersion> fetchChildren(HierarchicalQuery<DisplayVersion, String> hierarchicalQuery)**
And that seems to be designed to lazyLoad children only?
How can i combine the behaviors?
I implemeted an inMemory solution using TreeData and TreeDataProvider but inMemory is not plausable for us.
How can i achieve this?