return entities;
}
private void addColumnWithoutId(PROXY proxy, Field singleField, RowToPersist row) {
Object value = ReflectionUtil.fetchFieldValue(proxy, singleField);
Column c = new Column();
//byte[] columnName = formTheColumnName(proxy, idValue, singleField);
byte[] prefix = StandardConverters.convertToBytes(columnName);
byte[] singleFieldName = StandardConverters.convertToBytes(singleField.getName());
byte[] columnName = new byte[ prefix.length + singleFieldName.length];
for (int i = 0; i < columnName.length; i++) {
if (i < prefix.length)
columnName[i] = prefix[i];
else
columnName[i] = singleFieldName[i - prefix.length];
}
c.setName(columnName);
if (value != null) {
byte[] columnValue = null;
NoSqlConverter customConv = singleField.getAnnotation(NoSqlConverter.class);
if (customConv != null) {
columnValue = getBytesValue(value, customConv);
} else {
columnValue = StandardConverters.convertToBytes(value);
}
c.setValue(columnValue);
}
row.getColumns().add(c);
}