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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -