Closed GoogleCodeExporter closed 9 years ago
Oops..
assert ofy().find(Cat.class,cat)==null;
should have been:
assert ofy().find(Cat.class,key)==null;
Original comment by greg.ara...@gmail.com
on 11 Apr 2011 at 12:23
Found and reproduced in a test. Thanks!
Original comment by lhori...@gmail.com
on 11 Apr 2011 at 2:42
Fixed. One consequence is that cache misses use the @Cached behavior of the
root of an entity hierarchy. The reason is that saying ofy.find(Cat.class,
123) is really no different than saying ofy.find(Animal.class, 123) - since
there is no backing entity there is no discriminator to determine caching
behavior.
It's either this or disallow @Cached on @Subclasses, always using the @Entity
cache behavior. This seems to make more sense, but I'm up for debate.
Original comment by lhori...@gmail.com
on 11 Apr 2011 at 3:34
Thank YOU for all your hard work, and for sharing it with us. Looking forward
to 3.0 final :-)
Original comment by greg.ara...@gmail.com
on 11 Apr 2011 at 4:09
Original issue reported on code.google.com by
greg.ara...@gmail.com
on 11 Apr 2011 at 12:18