_currEntityResult = 0;
}
_currEntityResult++;
EntityResultConfig entityResult = entityResults.get(oldEntityResult);
String className = entityResult.getEntityClass();
EntityType entityType = _aConn.getPersistenceUnit().getEntityType(className);
if (entityType == null)
throw new IllegalStateException(L.l("Unable to locate entity '{0}' for native query.", className));
int oldIndex = _currIndex;
// jpa/0y15 _currIndex++;
/* jpa/0y14
EntityItem item = entityType.getHome().findItem(_aConn, rs, oldIndex);
if (item == null)
return null;
Entity entity = item.getEntity();
*/
int keyLength = entityType.getId().getKeyCount();
ArrayList<FieldResultConfig> fieldResults
= entityResult.getFieldResults();
Entity entity = null;
int consumed = 0;