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 -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

r - Update two sets of radiobuttons reactively - shiny -