code: private void iterateAndPopulateEntity(Object entity, RowResult result, MetamodelImpl metaModel,
              Iterator<Attribute> iterator)
      {
          while (iterator.hasNext())
          {
              Attribute attribute = iterator.next();
              Field field = (Field) attribute.getJavaMember();
              // handle for embeddables
              if (attribute.getJavaType().isAnnotationPresent(Embeddable.class))
              {
                  EmbeddableType emb = metaModel.embeddable(attribute.getJavaType());
                  Object embeddableObj = KunderaCoreUtils.createNewInstance(attribute.getJavaType());
                  populateEmbeddedColumn(embeddableObj, result, emb, metaModel);
                  PropertyAccessorHelper.set(entity, field, embeddableObj);
              }
              else
              {
                  if (KuduDBDataHandler.hasColumn(result.getSchema(), ((AbstractAttribute) attribute).getJPAColumnName()))
                  {
                      PropertyAccessorHelper.set(entity, field, KuduDBDataHandler.getColumnValue(result,
                              ((AbstractAttribute) attribute).getJPAColumnName()));
                  }
              }
          }
      }
docs: Iterate and populate entity.
  
  @param entity
  the entity
  @param result
  the result
  @param metaModel
  the meta model
  @param iterator
  the iterator