google-code-export / objectify-appengine

Automatically exported from code.google.com/p/objectify-appengine
MIT License
1 stars 0 forks source link

Add @OnDelete lifecycle method #169

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The @OnSave lifecycle method does not listen to deletes (which makes sense) and 
I could not find a specific @OnDelete annotation.

Original issue reported on code.google.com by mar...@overdijk.me on 14 Jul 2013 at 8:02

GoogleCodeExporter commented 9 years ago
The problem with @OnDelete is that it requires entities to be loaded. 
ofy().delete() will let you delete keys; forcing load of those entities is an 
expensive operation.

On the other hand, you're asking for it. It can do the load only if the 
@OnDelete annotation exists.

Original comment by lhori...@gmail.com on 14 Jul 2013 at 3:11

GoogleCodeExporter commented 9 years ago
Issue 84 has been merged into this issue.

Original comment by lhori...@gmail.com on 14 Apr 2014 at 1:07