datanucleus-core icon indicating copy to clipboard operation
datanucleus-core copied to clipboard

ExecutionContextImpl.findObject should have extra argument for case where we want to check inheritance below a particular class

Open andyjefferson opened this issue 8 years ago • 2 comments

Being able to check the inheritance level of an "id" is essential, but on occasion we know that an object is of a particular level or subclass (e.g relation loading). We should be able to pass in the class. Perhaps this could even reuse the fourth argument, but would need to update calls to use it in that way, and fix javadocs to be clear about the usages.

andyjefferson avatar Oct 09 '16 17:10 andyjefferson

While doing this, we should consider adding a method ExecutionContext.findObjects for multiple ids of the same candidate.

andyjefferson avatar Oct 27 '16 17:10 andyjefferson

The latter item "ExecutionContext.findObjects" was added to v5.1.0.m5. The original item needs a test case defining so that we have something to work against.

andyjefferson avatar Jul 12 '17 07:07 andyjefferson