code: private void writeValuesToEntity(Object entity, HBaseDataWrapper hbaseData, EntityMetadata m,
              MetamodelImpl metaModel, Set<Attribute> attributes, List<String> relationNames,
              Map<String, Object> relations, int count, String prefix)
      {
          for (Attribute attribute : attributes)
          {
              Class javaType = ((AbstractAttribute) attribute).getBindableJavaType();
              if (metaModel.isEmbeddable(javaType))
              {
                  processEmbeddable(entity, hbaseData, m, metaModel, count, prefix, attribute, javaType);
              }
              else if (!attribute.isCollection())
              {
                  String columnName = ((AbstractAttribute) attribute).getJPAColumnName();
                  columnName = count != -1 ? prefix + columnName + HBaseUtils.DELIM + count : prefix + columnName;
                  String idColName = ((AbstractAttribute) m.getIdAttribute()).getJPAColumnName();
                  String colFamily = ((AbstractAttribute) attribute).getTableName() != null ? ((AbstractAttribute) attribute)
                          .getTableName() : m.getTableName();
                  byte[] columnValue = hbaseData.getColumnValue(HBaseUtils.getColumnDataKey(colFamily, columnName));
                  if (relationNames != null && relationNames.contains(columnName) && columnValue != null
                          && columnValue.length > 0)
                  {
                      EntityType entityType = metaModel.entity(m.getEntityClazz());
                      relations.put(columnName, getObjectFromByteArray(entityType, columnValue, columnName, m));
                  }
                  else if (!idColName.equals(columnName) && columnValue != null)
                  {
                      PropertyAccessorHelper.set(entity, (Field) attribute.getJavaMember(), columnValue);
                  }
              }
          }
      }
docs: Write values to entity.
  
  @param entity
  the entity
  @param hbaseData
  the hbase data
  @param m
  the m
  @param metaModel
  the meta model
  @param attributes
  the attributes
  @param relationNames
  the relation names
  @param relations
  the relations
  @param count
  the count
  @param prefix
  the prefix
  @return the int