1

I have the case that I operate on some object I got from greenDao and in some cases I have to revert the changes. I only got this to work with IdentityScope.None - with some IdentityScope I found no way to do that - even refresh() which sounded promising was not bringing back the data from the database. Is there any way to do this with a IdentityScope?

4

1 回答 1

2

DAO 的 refresh(entity) 方法会重新加载数据库中的所有实体值。但是,它在单个实体上运行,而不是在实体树上运行。

于 2013-04-18T16:03:57.053 回答