I'm running into a problem where data that is retrieved via a Query comes out null, but when I retrieve it using an Extent everything is present. We have a very simple class:
public class PositionReportManagerBean implements InstanceCallbacks { private int maxReports; private List<PositionReportBean> reports; }
I have a test file with 5 instances of PositionReportManagerBean, each with maxReports set to 10 and 5 PositionReportBeans in reports. I can verify with the ObjectDB explorer that all of the data is there. If I call
Extent<PositionReportManagerBean> extent = pm.getExtent(PositionReportManagerBean.class, true);
I get an Extent back with all of the data as I would expect. However, if I execute a Query:
javax.jdo.Query q = pm.newQuery(PositionReportManagerBean.class, ""); Collection c = (Collection)q.execute();
Then the PositionReportManagerBeans that are part of the returned Collection have the maxReports set to 10 as I expect, but the List of PositionReportBeans is empty. Is there something I need to set on the Query? I'm really stumped by this one.