Hello,
I am trying to layout a prefetch graph with inheritance and can't quite figure out the inheritance portion. It seems that I am trying to create a prefetch path with 2 root nodes.
I have the following graph:
QuestionSet (related 1:N) with Question
Question (as supertype to 2 sub-types): TextQuestion and OptionQuestion.
OptionQuestion (related m:1) with OptionSet.
So, I start my prefetchpath with QuestionSet, then form the prefetch to Question, no problem. The Question collection returns a collection of TextQuestion or OptionQuestion objects.
How do I specify that I also want OptionQuestion objects to prefetch out to OptionSet? The Question entity does not contain a QuestionEntity.PreFetchPathOptionQuestion where I could then do a subpath.add(OptionQuestion.PreFetchPathOptionSet).
Essentially, I can prefetch down to the question entity, but can't figure out how to tell it to prefetch from OptionQuestion to OptionSet for those Question entities that are type OptionQuestion?
Hope this explanation makes sense. Any suggestion would be greatly appreciated, as I have not been able to find any references to this issue on the forum as of yet?
Thanks,
Can1