Hi,
When I try to delete AO entities that I’ve fetched using ao.stream I get a error:
cannot be cast to net.java.ao.EntityProxyAccessor
The code:
final List categoryCacheEntities = new ArrayList();
ao.stream(CategoryCacheEntity.class, new EntityStreamCallback<CategoryCacheEntity, Integer>()
{
@Override
public void onRowRead(CategoryCacheEntity categoryCacheEntity)
{
categoryCacheEntities.add(categoryCacheEntity);
counter[0]++;
}
});
for(CategoryCacheEntity e : categoryCacheEntities)
{
ao.delete(e);
}
Using ao.find works just fine. Any ideas?