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

Receive udp packets in android gstreamer -

php - Extract Text from HTTP referer -

java - Callback from new thread to class from which thread was initiated -