entityMetadata.getPersistenceUnit());
String idColumnName = ((AbstractAttribute) entityMetadata.getIdAttribute()).getJPAColumnName();
Table schemaTable = tableAPI.getTable(entityMetadata.getTableName());
PrimaryKey rowKey = schemaTable.createPrimaryKey();
if (metamodel.isEmbeddable(entityMetadata.getIdAttribute().getBindableJavaType()))
{
readEmbeddable(key, columnsToSelect, entityMetadata, metamodel, schemaTable, rowKey,
entityMetadata.getIdAttribute());
}