*/
@SuppressWarnings("unchecked")
private Object find(Class entityClass, Object key, List<String> columnsToSelect)
{
EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entityClass);
MetamodelImpl metamodel = (MetamodelImpl) KunderaMetadataManager.getMetamodel(kunderaMetadata,
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());
}
else