ClassLoaderResolver clr = sm.getObjectManager().getClassLoaderResolver();
// TODO Allow for more than just the first elementTable (currently take the columns to select from the first element table only)
if (elementsAreEmbedded || elementsAreSerialised)
{
return new PersistentIDROF(null , null, emd, null, null, null, ignoreCache, false,
stmt.hasMetaDataExpression(), null, clr.classForName(elementType));
}
else if (elementMapping instanceof ReferenceMapping)
{
// Element = Reference (Interface/Object)
// TODO Respect any fetch plan for the implementation class