3.1rc2:
My object graph has the following structure:
ApplicantRequisition β (many-to-one) - Requisition
Requisition has a batch-size of 10.
Code:
Criteria criteria = createCriteria(ApplicantRequisition.class);
Produces an outer query followed by selection of the requisitions using the βinβ operator with the assigned batch size.
Code:
adding...
ProjectionList projectionList = Projections.projectionList();
projectionList.add(Projections.property("requisition"));
criteria.setProjection(projectionList);
Produces the outer query and follows up with individual selects for each requisition object.
Am I missing a setting or is this a bug?