for (Attribute attribute : attributes)
{
String tableName = ((AbstractAttribute) attribute).getTableName() != null ? ((AbstractAttribute) attribute)
.getTableName() : m.getTableName();
ThriftRow tr = getThriftRow(id, tableName, thriftRows);
if (!attribute.getName().equals(m.getIdAttribute().getName()) && !attribute.isAssociation())
{
Field field = (Field) ((Attribute) attribute).getJavaMember();
byte[] name = ByteBufferUtil.bytes(((AbstractAttribute) attribute).getJPAColumnName()).array();
// if attribute is embeddable.
if (metaModel.isEmbeddable(attribute.isCollection() ? ((PluralAttribute) attribute)
.getBindableJavaType() : attribute.getJavaType()))
{
Map<String, Object> thriftSuperColumns = onEmbeddable(timestamp, tr, m, e, id, attribute);
if (thriftSuperColumns != null)
{
for (String columnFamilyName : thriftSuperColumns.keySet())
{
ThriftRow thriftRow = getThriftRow(id, columnFamilyName, thriftRows);
if (m.isCounterColumnType())
{
thriftRow.addCounterSuperColumn((CounterSuperColumn) thriftSuperColumns
.get(columnFamilyName));
}
else
{
thriftRow.addSuperColumn((SuperColumn) thriftSuperColumns.get(columnFamilyName));
}
}
}
}
else