hi,
I have an simple inherited object. eg: Child extends Parent.
When I query Parent objects, I get both child & parent. Is there a way to fetch only parent objects using SODA ?
thanks in advance.
Hi,
I'm not aware of any direct solution. AFAIK the class indices within db4o are including the subclass instances, so this knowledge is not available.
Two workarounds:
- Run two queries against Parent.class and Child.class and remove all Children from Parents-ObjectSet.
- Use an SODA-Evaluation.
Cheers, Maik