android - Understanding deleting and deleting relations in greenDao -


first question is, when greendao generate delete function entity? , what's difference between calling entity.delete() , session.getentitydao.delete(entity)?

second, if delete parent entity child has toone relation parent, have remove child myself, don't i? no automatic dependency "cleaning" done, right?

entity.delete() requires entity "active", dao.delete(entity) works entities.

there no cascading deletes in greendao, got delete entities individually.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

php - Extract Text from HTTP referer -

How to merge four videos on one screen with ffmpeg -