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 ) ; } } } }
Write values to entity .