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
Post a Comment